branch: elpa/lua-mode
commit d7c462af4f8dd6d4427fd42fb862588cc061ab2d
Author: juergen <juergen>
Commit: juergen <juergen>
Fix bug #620: Wrong identation with tables
---
lua-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 952611f..74ee4a6 100755
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -733,7 +733,7 @@ use standalone."
(cons 'absolute (+ (save-excursion (goto-char found-pos)
(current-column))
lua-indent-level)))
- ((string-equal found-token "(")
+ ((or (string-equal found-token "(") (string-equal found-token "{"))
;; this is the location where we need to start searching for the
;; matching opening token, when we encounter the next closing token.
;; It is primarily an optimization to save some searchingt ime.
@@ -749,7 +749,7 @@ use standalone."
(lua-calculate-indentation-block-modifier
nil (point))))
(cons 'relative (- lua-indent-level)))))
- ((string-equal found-token ")")
+ ((or (string-equal found-token ")") (string-equal found-token "}"))
(save-excursion
(lua-goto-matching-block-token nil found-pos)
(cons 'absolute