branch: elpa/lua-mode
commit 3a3f0b09092fb8428c53deab6a1fc4d182e08530
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>

    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