From 3e1f54c1ce0a86959313f1cb7f60262ea57aaa23 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 14 Apr 2026 18:56:49 +0200 Subject: [PATCH] feat(kotlin)!: update parser and queries Breaking change: replace`${` and `}` nodes in interpolated expressions, by `(interpolation_expression_start)` and `(interpolation_expression_end)` --- lua/nvim-treesitter/parsers.lua | 2 +- runtime/queries/kotlin/highlights.scm | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 6290f0636..c35c4e249 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1212,7 +1212,7 @@ return { }, kotlin = { install_info = { - revision = '93bfeee1555d2b1442d68c44b0afde2a3b069e46', + revision = '68f564d46c5a137f412d4a7497a0212a4a81655d', url = 'https://github.com/fwcd/tree-sitter-kotlin', }, tier = 2, diff --git a/runtime/queries/kotlin/highlights.scm b/runtime/queries/kotlin/highlights.scm index a45ab23d5..0383b2ee1 100644 --- a/runtime/queries/kotlin/highlights.scm +++ b/runtime/queries/kotlin/highlights.scm @@ -388,10 +388,6 @@ ; NOTE: `interpolated_identifier`s can be highlighted in any way (string_literal - "$" @punctuation.special - (interpolated_identifier) @none @variable) - -(string_literal - "${" @punctuation.special + (interpolation_expression_start) @punctuation.special (interpolated_expression) @none - "}" @punctuation.special) + (interpolation_expression_end) @punctuation.special)