mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
fine tune keyword highlights
This commit is contained in:
parent
c29865a7b3
commit
61ea08f8d3
1 changed files with 43 additions and 25 deletions
|
|
@ -1,50 +1,68 @@
|
||||||
[
|
[
|
||||||
"and"
|
|
||||||
"any"
|
|
||||||
"as"
|
"as"
|
||||||
"asc"
|
"asc"
|
||||||
"avg"
|
|
||||||
"by"
|
"by"
|
||||||
"class"
|
"class"
|
||||||
"concat"
|
|
||||||
"count"
|
|
||||||
"desc"
|
"desc"
|
||||||
"else"
|
|
||||||
"exists"
|
|
||||||
"extends"
|
"extends"
|
||||||
"forall"
|
"forall"
|
||||||
"forex"
|
"forex"
|
||||||
"from"
|
"from"
|
||||||
"if"
|
|
||||||
"implies"
|
"implies"
|
||||||
"import"
|
|
||||||
"in"
|
"in"
|
||||||
"instanceof"
|
|
||||||
"max"
|
|
||||||
"min"
|
|
||||||
"module"
|
"module"
|
||||||
"newtype"
|
"newtype"
|
||||||
"not"
|
|
||||||
"or"
|
|
||||||
"order"
|
"order"
|
||||||
"rank"
|
|
||||||
"select"
|
"select"
|
||||||
"strictconcat"
|
|
||||||
"strictcount"
|
|
||||||
"strictsum"
|
|
||||||
"sum"
|
|
||||||
"then"
|
|
||||||
"where"
|
"where"
|
||||||
|
|
||||||
(false)
|
|
||||||
(predicate)
|
(predicate)
|
||||||
(result)
|
(result)
|
||||||
(specialId)
|
(specialId)
|
||||||
(super)
|
|
||||||
(this)
|
|
||||||
(true)
|
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
[
|
||||||
|
"and"
|
||||||
|
"not"
|
||||||
|
"or"
|
||||||
|
] @keyword.operator
|
||||||
|
|
||||||
|
[
|
||||||
|
"avg"
|
||||||
|
"any"
|
||||||
|
"count"
|
||||||
|
"concat"
|
||||||
|
"exists"
|
||||||
|
"max"
|
||||||
|
"min"
|
||||||
|
"instanceof"
|
||||||
|
"rank"
|
||||||
|
"sum"
|
||||||
|
"strictconcat"
|
||||||
|
"strictcount"
|
||||||
|
"strictsum"
|
||||||
|
] @function.builtin
|
||||||
|
|
||||||
|
[
|
||||||
|
"import"
|
||||||
|
] @include
|
||||||
|
|
||||||
|
[
|
||||||
|
"if"
|
||||||
|
"then"
|
||||||
|
"else"
|
||||||
|
] @conditional
|
||||||
|
|
||||||
|
[
|
||||||
|
(true)
|
||||||
|
(false)
|
||||||
|
] @boolean
|
||||||
|
|
||||||
|
[
|
||||||
|
(this)
|
||||||
|
(super)
|
||||||
|
] @variable.builtin
|
||||||
|
|
||||||
[
|
[
|
||||||
"boolean"
|
"boolean"
|
||||||
"float"
|
"float"
|
||||||
|
|
@ -89,7 +107,7 @@
|
||||||
(varName) @variable
|
(varName) @variable
|
||||||
|
|
||||||
(integer) @number
|
(integer) @number
|
||||||
(float) @number
|
(float) @float
|
||||||
|
|
||||||
(string) @string
|
(string) @string
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue