branch: elpa/lua-mode
commit 6b1d3894790dd791710d34eb3751dfc8f757f56d
Author: immerrr <imme...@gmail.com>
Commit: immerrr <imme...@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