aboutsummaryrefslogtreecommitdiffstats
path: root/queries/kotlin
diff options
context:
space:
mode:
authorSal Bakraa <SalBakraa@gmail.com>2022-01-06 03:42:40 +0300
committerStephan Seitz <stephan.seitz@fau.de>2022-01-08 20:01:00 +0100
commita2629ebcc0da7542f8723fb7f7b2e653ad230d3f (patch)
tree97189fc485bb0a79b08d7376036a0182764d5e8d /queries/kotlin
parentfix(kotlin): use @attribute instead of @annotation (diff)
downloadnvim-treesitter-a2629ebcc0da7542f8723fb7f7b2e653ad230d3f.tar
nvim-treesitter-a2629ebcc0da7542f8723fb7f7b2e653ad230d3f.tar.gz
nvim-treesitter-a2629ebcc0da7542f8723fb7f7b2e653ad230d3f.tar.bz2
nvim-treesitter-a2629ebcc0da7542f8723fb7f7b2e653ad230d3f.tar.lz
nvim-treesitter-a2629ebcc0da7542f8723fb7f7b2e653ad230d3f.tar.xz
nvim-treesitter-a2629ebcc0da7542f8723fb7f7b2e653ad230d3f.tar.zst
nvim-treesitter-a2629ebcc0da7542f8723fb7f7b2e653ad230d3f.zip
fix(kotlin): use _import for type captures
Diffstat (limited to 'queries/kotlin')
-rw-r--r--queries/kotlin/highlights.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/queries/kotlin/highlights.scm b/queries/kotlin/highlights.scm
index edd97223e..2567a74c1 100644
--- a/queries/kotlin/highlights.scm
+++ b/queries/kotlin/highlights.scm
@@ -96,17 +96,17 @@
; or a type. Classes can appear anywhere in the import path, unlike functions
(import_header
(identifier
- (simple_identifier) @type @import)
+ (simple_identifier) @type @_import)
(import_alias
(type_identifier) @type)?
- (#lua-match? @import "^[A-Z]"))
+ (#lua-match? @_import "^[A-Z]"))
(import_header
(identifier
- (simple_identifier) @function @import .)
+ (simple_identifier) @function @_import .)
(import_alias
(type_identifier) @function)?
- (#lua-match? @import "^[a-z]"))
+ (#lua-match? @_import "^[a-z]"))
; TODO: Seperate labeled returns/breaks/continue/super/this
; Must be implemented in the parser first