Extract syntax highlighting properties from tree-sitter highlight queries
This commit is contained in:
@@ -158,7 +158,7 @@
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @constructor)
|
||||
] @method.constructor)
|
||||
|
||||
;; Functions
|
||||
|
||||
@@ -195,4 +195,4 @@
|
||||
|
||||
(number) @number
|
||||
|
||||
(string) @string
|
||||
(string) @string
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
((name) @constant.builtin
|
||||
(#match? @constant.builtin "^__[A-Z][A-Z\d_]+__$"))
|
||||
|
||||
((name) @constructor
|
||||
(#match? @constructor "^[A-Z]"))
|
||||
((name) @method.constructor
|
||||
(#match? @method.constructor "^[A-Z]"))
|
||||
|
||||
((name) @variable.builtin
|
||||
(#eq? @variable.builtin "this"))
|
||||
|
||||
@@ -43,8 +43,8 @@
|
||||
|
||||
; Special identifiers
|
||||
|
||||
((identifier) @constructor
|
||||
(#match? @constructor "^[A-Z]"))
|
||||
((identifier) @method.constructor
|
||||
(#match? @method.constructor "^[A-Z]"))
|
||||
|
||||
((identifier) @type
|
||||
(#match? @type "^[A-Z]"))
|
||||
@@ -218,4 +218,4 @@
|
||||
"type"
|
||||
"readonly"
|
||||
"override"
|
||||
] @keyword
|
||||
] @keyword
|
||||
|
||||
Reference in New Issue
Block a user