Lua: highlight uppercase variables as constants (#1690)

This commit is contained in:
Santos Gallegos 2021-08-14 13:33:55 -05:00 committed by GitHub
parent 39a53ffbbc
commit 460a26ef32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)