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

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

[nongnu] elpa/lua-mode 31acb6b 029/468: Fix bug #621: Wrong comment bloc


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode 31acb6b 029/468: Fix bug #621: Wrong comment block detection
Date: Thu, 5 Aug 2021 04:58:02 -0400 (EDT)

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

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