From f71ec9cb4ead1e7f9573a37686c87e6a9206a415 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 10 Sep 2021 02:27:34 -0400 Subject: Fixed the indentation of variants. --- lux-mode/lux-mode.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lux-mode') 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)))) -- cgit v1.2.3