diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2024-01-10 18:05:37 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | fa38f4e6f94b4e67fb80af21178dba3b422efb12 (patch) | |
| tree | f28ad35e6a65f177f33c10091175fb75549f2d8c /queries/kotlin | |
| parent | fix(highlights): improve consistency (diff) | |
| download | nvim-treesitter-fa38f4e6f94b4e67fb80af21178dba3b422efb12.tar nvim-treesitter-fa38f4e6f94b4e67fb80af21178dba3b422efb12.tar.gz nvim-treesitter-fa38f4e6f94b4e67fb80af21178dba3b422efb12.tar.bz2 nvim-treesitter-fa38f4e6f94b4e67fb80af21178dba3b422efb12.tar.lz nvim-treesitter-fa38f4e6f94b4e67fb80af21178dba3b422efb12.tar.xz nvim-treesitter-fa38f4e6f94b4e67fb80af21178dba3b422efb12.tar.zst nvim-treesitter-fa38f4e6f94b4e67fb80af21178dba3b422efb12.zip | |
fix(highlights): improve member/property distinction
Diffstat (limited to 'queries/kotlin')
| -rw-r--r-- | queries/kotlin/highlights.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/kotlin/highlights.scm b/queries/kotlin/highlights.scm index 2e5c349d2..b09cb75b9 100644 --- a/queries/kotlin/highlights.scm +++ b/queries/kotlin/highlights.scm @@ -25,17 +25,17 @@ "@" @variable.builtin) (class_parameter - (simple_identifier) @property) + (simple_identifier) @variable.member) (class_body (property_declaration (variable_declaration - (simple_identifier) @property))) + (simple_identifier) @variable.member))) ; id_1.id_2.id_3: `id_2` and `id_3` are assumed as object properties (_ (navigation_suffix - (simple_identifier) @property)) + (simple_identifier) @variable.member)) ; SCREAMING CASE identifiers are assumed to be constants ((simple_identifier) @constant |
