From a2629ebcc0da7542f8723fb7f7b2e653ad230d3f Mon Sep 17 00:00:00 2001 From: Sal Bakraa Date: Thu, 6 Jan 2022 03:42:40 +0300 Subject: [PATCH] fix(kotlin): use _import for type captures --- queries/kotlin/highlights.scm | 8 ++++---- 1 file 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