aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2026-04-14 18:56:49 +0200
committerChristian Clason <ch.clason+github@icloud.com>2026-07-18 22:23:55 +0200
commit3e1f54c1ce0a86959313f1cb7f60262ea57aaa23 (patch)
tree93ee4f175d5fc821ebdd3f9726e82f78c1ca076f
parentfeat(fortran)!: update parser and queries (diff)
downloadnvim-treesitter-3e1f54c1ce0a86959313f1cb7f60262ea57aaa23.tar
nvim-treesitter-3e1f54c1ce0a86959313f1cb7f60262ea57aaa23.tar.gz
nvim-treesitter-3e1f54c1ce0a86959313f1cb7f60262ea57aaa23.tar.bz2
nvim-treesitter-3e1f54c1ce0a86959313f1cb7f60262ea57aaa23.tar.lz
nvim-treesitter-3e1f54c1ce0a86959313f1cb7f60262ea57aaa23.tar.xz
nvim-treesitter-3e1f54c1ce0a86959313f1cb7f60262ea57aaa23.tar.zst
nvim-treesitter-3e1f54c1ce0a86959313f1cb7f60262ea57aaa23.zip
feat(kotlin)!: update parser and queries
Breaking change: replace`${` and `}` nodes in interpolated expressions, by `(interpolation_expression_start)` and `(interpolation_expression_end)`
-rw-r--r--lua/nvim-treesitter/parsers.lua2
-rw-r--r--runtime/queries/kotlin/highlights.scm8
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)