diff options
Diffstat (limited to 'lux-mode')
-rw-r--r-- | lux-mode/lux-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lux-mode/lux-mode.el b/lux-mode/lux-mode.el index 558cf92f6..4ba38fa85 100644 --- a/lux-mode/lux-mode.el +++ b/lux-mode/lux-mode.el @@ -350,8 +350,8 @@ This function also returns nil meaning don't specify the indentation." ((or (eq method 'defun) (and (null method) (> (length function) 2) - (string-match "\\`\\(?:\\S +/\\)?\\(\\w+:\\|\\(\\w*;\\)?with-\\)" - function))) + (or (string-match "with-" function) + (string-match ":\\'" function)))) (lisp-indent-defform state indent-point)) ((integerp method) (lisp-indent-specform method state |