mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
feat: replace match with any-of
This commit is contained in:
parent
d3f5802fba
commit
3633684b47
1 changed files with 21 additions and 1 deletions
|
|
@ -204,7 +204,27 @@
|
||||||
|
|
||||||
; when used as an identifier:
|
; when used as an identifier:
|
||||||
((identifier) @variable.builtin
|
((identifier) @variable.builtin
|
||||||
(#match? @variable.builtin "^(abstract|as|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|set|static|typedef)$"))
|
(#any-of? @variable.builtin
|
||||||
|
"abstract"
|
||||||
|
"as"
|
||||||
|
"covariant"
|
||||||
|
"deferred"
|
||||||
|
"dynamic"
|
||||||
|
"export"
|
||||||
|
"external"
|
||||||
|
"factory"
|
||||||
|
"Function"
|
||||||
|
"get"
|
||||||
|
"implements"
|
||||||
|
"import"
|
||||||
|
"interface"
|
||||||
|
"library"
|
||||||
|
"operator"
|
||||||
|
"mixin"
|
||||||
|
"part"
|
||||||
|
"set"
|
||||||
|
"static"
|
||||||
|
"typedef"))
|
||||||
|
|
||||||
["if" "else" "switch" "default"] @conditional
|
["if" "else" "switch" "default"] @conditional
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue