Revert "Extract syntax highlighting properties from tree-sitter highlight queries (#2797)"
This reverts commit45c635872b, reversing changes made tof2b82369f2.
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
(identifier) @variable
|
||||
|
||||
((identifier) @variable.special
|
||||
(.eq? @variable.special "self"))
|
||||
(#eq? @variable.special "self"))
|
||||
|
||||
(variable_list
|
||||
attribute: (attribute
|
||||
@@ -137,7 +137,7 @@
|
||||
;; Constants
|
||||
|
||||
((identifier) @constant
|
||||
(.match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||
|
||||
(vararg_expression) @constant
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @method.constructor)
|
||||
] @constructor)
|
||||
|
||||
;; Functions
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
|
||||
(function_call
|
||||
(identifier) @function.builtin
|
||||
(.any-of? @function.builtin
|
||||
(#any-of? @function.builtin
|
||||
;; built-in functions in Lua 5.1
|
||||
"assert" "collectgarbage" "dofile" "error" "getfenv" "getmetatable" "ipairs"
|
||||
"load" "loadfile" "loadstring" "module" "next" "pairs" "pcall" "print"
|
||||
@@ -195,4 +195,4 @@
|
||||
|
||||
(number) @number
|
||||
|
||||
(string) @string
|
||||
(string) @string
|
||||
Reference in New Issue
Block a user