aboutsummaryrefslogtreecommitdiff
path: root/lux-mode
diff options
context:
space:
mode:
authorEduardo Julian2021-09-10 02:27:34 -0400
committerEduardo Julian2021-09-10 02:27:34 -0400
commitf71ec9cb4ead1e7f9573a37686c87e6a9206a415 (patch)
tree30c716f305a729d1266256ad0f2a504ff66e2f64 /lux-mode
parentcd71a864ad5be13ed6ec6d046e0a2cb1087bdf94 (diff)
Fixed the indentation of variants.
Diffstat (limited to 'lux-mode')
-rw-r--r--lux-mode/lux-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lux-mode/lux-mode.el b/lux-mode/lux-mode.el
index a98a7a472..a56ea3360 100644
--- a/lux-mode/lux-mode.el
+++ b/lux-mode/lux-mode.el
@@ -544,11 +544,12 @@ This function also returns nil meaning don't specify the indentation."
(last
(split-string (substring-no-properties function) "\\.")))))
(setq method (get (intern-soft function-tail) 'lux-indent-function))
- (cond ((member (char-after open-paren) '(?\{ ?\[))
+ (cond ((member (char-after open-paren) '(?\[ ;; ?\{
+ ))
(goto-char open-paren)
(1+ (current-column)))
((or (eq method 'defun)
- (and (null method)
+ (and (null method)
(> (length function) 2)
(or (string-match withRE function-tail)
(string-match definitionRE function-tail))))