branch: elpa/lua-mode
commit 31acb6b1b0f10959eec24f45a1498ae5bdb01337
Author: juergen <juergen>
Commit: juergen <juergen>

    Fix bug #621: Wrong comment block detection
---
 lua-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lua-mode.el b/lua-mode.el
index 42d1b9c..952611f 100755
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -214,8 +214,8 @@ traceback location."
      ; try (setq font-lock-support-mode 'lazy-lock-mode) in your ~/.emacs
 
      ;; Multi-line comment blocks.
-     `("^[^-]*--\\[\\(=*\\)\\[\\(.\\|\n\\)*?--\\]\\1\\]"
-       (0 font-lock-comment-face t))
+     `("\\(?:^\\|[^-]\\)\\(--\\[\\(=*\\)\\[\\(?:.\\|\n\\)*?--\\]\\2\\]\\)"
+       (1 font-lock-comment-face t))
 
      ;;
      ;; Keywords.

Reply via email to