emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/lua-mode 6b1d389 074/468: lua-calculate-unindentation: ski


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode 6b1d389 074/468: lua-calculate-unindentation: skip semicolons as well
Date: Thu, 5 Aug 2021 04:58:10 -0400 (EDT)

branch: elpa/lua-mode
commit 6b1d3894790dd791710d34eb3751dfc8f757f56d
Author: immerrr <immerrr@gmail.com>
Commit: immerrr <immerrr@gmail.com>

    lua-calculate-unindentation: skip semicolons as well
---
 lua-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua-mode.el b/lua-mode.el
index fcb7ea2..4c011a3 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -780,7 +780,7 @@ one."
          (if (lua-is-continuing-statement-p) (- lua-indent-level) 0)))))
 
 (defconst lua-unindentation-regexp
-  (concat "\\s *" ;; else/elseif/until/end/"]"/"}"/")"
+  (concat "[\\s ;]*"
           "\\(?1:\\_<" (regexp-opt '("else" "elseif" "until" "end")) "\\_>"
           "\\|" (regexp-opt '("]" "}" ")")) "\\)"))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]