aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTormod Alf Try Tufteland <tormodat.tufteland@eika.no>2020-12-05 22:14:20 +0100
committerStephan Seitz <stephan.lauf@yahoo.de>2020-12-06 15:08:51 +0100
commite63f81ec0aa834771c81fb8611b487a290b697c3 (patch)
treeb2d922c0fbc616f49dc9143b702e173745fb4478
parentadd more builtin functions (diff)
downloadnvim-treesitter-e63f81ec0aa834771c81fb8611b487a290b697c3.tar
nvim-treesitter-e63f81ec0aa834771c81fb8611b487a290b697c3.tar.gz
nvim-treesitter-e63f81ec0aa834771c81fb8611b487a290b697c3.tar.bz2
nvim-treesitter-e63f81ec0aa834771c81fb8611b487a290b697c3.tar.lz
nvim-treesitter-e63f81ec0aa834771c81fb8611b487a290b697c3.tar.xz
nvim-treesitter-e63f81ec0aa834771c81fb8611b487a290b697c3.tar.zst
nvim-treesitter-e63f81ec0aa834771c81fb8611b487a290b697c3.zip
@annotation -> @attribute
-rw-r--r--queries/kotlin/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/kotlin/highlights.scm b/queries/kotlin/highlights.scm
index 86a1e5a3a..64cbba185 100644
--- a/queries/kotlin/highlights.scm
+++ b/queries/kotlin/highlights.scm
@@ -25,7 +25,7 @@
;; Variables/fields
; attribute in data classes etc.
-(class_parameter (simple_identifier) @attribute)
+(class_parameter (simple_identifier) @field)
; variable in normal classes
(property_declaration (variable_declaration (simple_identifier) @variable))
; accessed field in blocks. `logger` in `logger.info("")`
@@ -54,7 +54,7 @@
(boolean_literal) @boolean
;; Annotations
-(annotation (single_annotation) @annotation)
+(annotation (single_annotation) @attribute)
;; Types
; TODO more type definitions