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

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

[nongnu] elpa/lua-mode cee511c 206/468: for/local varname highlighting:


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode cee511c 206/468: for/local varname highlighting: match '=' at EOL properly
Date: Thu, 5 Aug 2021 04:58:37 -0400 (EDT)

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

    for/local varname highlighting: match '=' at EOL properly
---
 lua-mode.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lua-mode.el b/lua-mode.el
index e8a0f22..7917790 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -537,7 +537,7 @@ Groups 6-9 can be used in any of argument regexps."
 
     ("^[ \t]*\\_<for\\_>"
      (,(lua-make-delimited-matcher "\\_<[[:alpha:]_][[:alnum:]_]*\\_>" ","
-                                   "\\(?:\\_<in\\_>\\|=\\(?:[^=]\\)\\)")
+                                   "\\(?:\\_<in\\_>\\|=\\(?:[^=]\\|$\\)\\)")
       nil nil
       (1 font-lock-variable-name-face nil noerror)
       (2 font-lock-warning-face t noerror)
@@ -560,7 +560,8 @@ Groups 6-9 can be used in any of argument regexps."
       nil nil
       (1 font-lock-function-name-face nil noerror))
 
-     (,(lua-make-delimited-matcher "\\_<[[:alpha:]_][[:alnum:]_]*\\_>" "," 
"=\\(?:[^=]\\)")
+     (,(lua-make-delimited-matcher "\\_<[[:alpha:]_][[:alnum:]_]*\\_>" "," 
+                                   "=\\(?:[^=]\\|$\\)")
       nil nil
       (1 font-lock-variable-name-face nil noerror)
       (2 font-lock-warning-face t noerror)



reply via email to

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