mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
feat(kotlin): improved highlight queries
This commit is contained in:
parent
2277c0c2a7
commit
94f3e8b069
1 changed files with 5 additions and 2 deletions
|
|
@ -47,6 +47,9 @@
|
||||||
|
|
||||||
(type_identifier) @type
|
(type_identifier) @type
|
||||||
|
|
||||||
|
; '?' operator, replacement for Java @Nullable
|
||||||
|
(nullable_type) @attribute
|
||||||
|
|
||||||
(type_alias
|
(type_alias
|
||||||
(type_identifier) @type.definition)
|
(type_identifier) @type.definition)
|
||||||
|
|
||||||
|
|
@ -405,7 +408,7 @@
|
||||||
; NOTE: `interpolated_identifier`s can be highlighted in any way
|
; NOTE: `interpolated_identifier`s can be highlighted in any way
|
||||||
(line_string_literal
|
(line_string_literal
|
||||||
"$" @punctuation.special
|
"$" @punctuation.special
|
||||||
(interpolated_identifier) @none)
|
(interpolated_identifier) @variable)
|
||||||
(line_string_literal
|
(line_string_literal
|
||||||
"${" @punctuation.special
|
"${" @punctuation.special
|
||||||
(interpolated_expression) @none
|
(interpolated_expression) @none
|
||||||
|
|
@ -413,7 +416,7 @@
|
||||||
|
|
||||||
(multi_line_string_literal
|
(multi_line_string_literal
|
||||||
"$" @punctuation.special
|
"$" @punctuation.special
|
||||||
(interpolated_identifier) @none)
|
(interpolated_identifier) @variable)
|
||||||
(multi_line_string_literal
|
(multi_line_string_literal
|
||||||
"${" @punctuation.special
|
"${" @punctuation.special
|
||||||
(interpolated_expression) @none
|
(interpolated_expression) @none
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue