mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(ql): use more specific groups
This commit is contained in:
parent
920c14c33b
commit
a1f21606d9
1 changed files with 13 additions and 8 deletions
|
|
@ -1,12 +1,8 @@
|
|||
[
|
||||
"as"
|
||||
"asc"
|
||||
"by"
|
||||
"class"
|
||||
"desc"
|
||||
"extends"
|
||||
"forall"
|
||||
"forex"
|
||||
"from"
|
||||
"implies"
|
||||
"in"
|
||||
|
|
@ -43,9 +39,7 @@
|
|||
"strictsum"
|
||||
] @function.builtin
|
||||
|
||||
[
|
||||
"import"
|
||||
] @include
|
||||
"import" @include
|
||||
|
||||
[
|
||||
"if"
|
||||
|
|
@ -53,6 +47,16 @@
|
|||
"else"
|
||||
] @conditional
|
||||
|
||||
[
|
||||
"forall"
|
||||
"forex"
|
||||
] @repeat
|
||||
|
||||
[
|
||||
"asc"
|
||||
"desc"
|
||||
] @type.qualifier
|
||||
|
||||
[
|
||||
(true)
|
||||
(false)
|
||||
|
|
@ -106,9 +110,10 @@
|
|||
(module name: (moduleName) @namespace)
|
||||
|
||||
(dataclass name: (className) @type)
|
||||
(datatype name: (className) @type)
|
||||
(typeExpr name: (className) @type)
|
||||
|
||||
(datatype name: (className) @type.definition)
|
||||
|
||||
(importModuleExpr qualName: (simpleId) @variable)
|
||||
(varName) @variable
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue