Lua: highlight uppercase variables as constants (#1690)

This commit is contained in:
Santos Gallegos 2021-08-14 13:33:55 -05:00 committed by Stephan Seitz
parent 159ca7b35c
commit 9c5dd185c4

View file

@ -115,6 +115,8 @@
] @boolean
(nil) @constant.builtin
(spread) @constant ;; "..."
((identifier) @constant
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
;; Functions
(function [(function_name) (identifier)] @function)