mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
highlights(kotlin): use more specific groups
This commit is contained in:
parent
ae51bc0638
commit
a16499f584
1 changed files with 5 additions and 2 deletions
|
|
@ -47,6 +47,9 @@
|
||||||
|
|
||||||
(type_identifier) @type
|
(type_identifier) @type
|
||||||
|
|
||||||
|
(type_alias
|
||||||
|
(type_identifier) @type.definition)
|
||||||
|
|
||||||
((type_identifier) @type.builtin
|
((type_identifier) @type.builtin
|
||||||
(#any-of? @type.builtin
|
(#any-of? @type.builtin
|
||||||
"Byte"
|
"Byte"
|
||||||
|
|
@ -98,7 +101,7 @@
|
||||||
(identifier
|
(identifier
|
||||||
(simple_identifier) @type @_import)
|
(simple_identifier) @type @_import)
|
||||||
(import_alias
|
(import_alias
|
||||||
(type_identifier) @type)?
|
(type_identifier) @type.definition)?
|
||||||
(#lua-match? @_import "^[A-Z]"))
|
(#lua-match? @_import "^[A-Z]"))
|
||||||
|
|
||||||
(import_header
|
(import_header
|
||||||
|
|
@ -285,7 +288,7 @@
|
||||||
(visibility_modifier)
|
(visibility_modifier)
|
||||||
(reification_modifier)
|
(reification_modifier)
|
||||||
(inheritance_modifier)
|
(inheritance_modifier)
|
||||||
]@keyword
|
] @type.qualifier
|
||||||
|
|
||||||
[
|
[
|
||||||
"val"
|
"val"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue