diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2026-04-14 18:56:49 +0200 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2026-07-18 22:23:55 +0200 |
| commit | 3e1f54c1ce0a86959313f1cb7f60262ea57aaa23 (patch) | |
| tree | 93ee4f175d5fc821ebdd3f9726e82f78c1ca076f | |
| parent | feat(fortran)!: update parser and queries (diff) | |
| download | nvim-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.lua | 2 | ||||
| -rw-r--r-- | 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) |
