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

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

[nongnu] elpa/lua-mode 3a3f0b0 193/468: Improve local var assignment mat


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode 3a3f0b0 193/468: Improve local var assignment matching
Date: Thu, 5 Aug 2021 04:58:34 -0400 (EDT)

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

    Improve local var assignment matching
    
    - make sure == is a syntax error
    - make sure names are matched on symbol boundaries
---
 lua-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua-mode.el b/lua-mode.el
index e250ae1..a1685db 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -561,7 +561,7 @@ 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]