refactor(lua): move _VERSION to @constant.builtin, builtin types to @namespace.builtin

This commit is contained in:
Amaan Qureshi 2023-04-28 03:42:54 -04:00
parent cde306813d
commit b8a0791eb4

View file

@ -127,8 +127,14 @@
(identifier) @variable
((identifier) @constant.builtin
(#eq? @constant.builtin "_VERSION"))
((identifier) @variable.builtin
(#any-of? @variable.builtin "_G" "_VERSION" "debug" "io" "jit" "math" "os" "package" "self" "string" "table" "utf8"))
(#eq? @variable.builtin "self"))
((identifier) @namespace.builtin
(#any-of? @namespace.builtin "_G" "debug" "io" "jit" "math" "os" "package" "string" "table" "utf8"))
((identifier) @keyword.coroutine
(#eq? @keyword.coroutine "coroutine"))