From 94f3e8b069130e8f3cb8b5d48dae6de04c453d5e Mon Sep 17 00:00:00 2001 From: JosefLitos Date: Wed, 22 Feb 2023 13:59:27 +0100 Subject: [PATCH] feat(kotlin): improved highlight queries --- queries/kotlin/highlights.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/queries/kotlin/highlights.scm b/queries/kotlin/highlights.scm index 73d12768e..8cbf402a8 100644 --- a/queries/kotlin/highlights.scm +++ b/queries/kotlin/highlights.scm @@ -47,6 +47,9 @@ (type_identifier) @type +; '?' operator, replacement for Java @Nullable +(nullable_type) @attribute + (type_alias (type_identifier) @type.definition) @@ -405,7 +408,7 @@ ; NOTE: `interpolated_identifier`s can be highlighted in any way (line_string_literal "$" @punctuation.special - (interpolated_identifier) @none) + (interpolated_identifier) @variable) (line_string_literal "${" @punctuation.special (interpolated_expression) @none @@ -413,7 +416,7 @@ (multi_line_string_literal "$" @punctuation.special - (interpolated_identifier) @none) + (interpolated_identifier) @variable) (multi_line_string_literal "${" @punctuation.special (interpolated_expression) @none