aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2026-04-24 17:01:28 +0200
committerChristian Clason <ch.clason+github@icloud.com>2026-07-18 22:23:55 +0200
commit7a7a1591e09c36001af5c80394b5ba8746dcc6d8 (patch)
tree07c2099bb185d1bbca24b00f1a7c49a9b56c92de
parentfeat(razor)!: update parser and queries (diff)
downloadnvim-treesitter-7a7a1591e09c36001af5c80394b5ba8746dcc6d8.tar
nvim-treesitter-7a7a1591e09c36001af5c80394b5ba8746dcc6d8.tar.gz
nvim-treesitter-7a7a1591e09c36001af5c80394b5ba8746dcc6d8.tar.bz2
nvim-treesitter-7a7a1591e09c36001af5c80394b5ba8746dcc6d8.tar.lz
nvim-treesitter-7a7a1591e09c36001af5c80394b5ba8746dcc6d8.tar.xz
nvim-treesitter-7a7a1591e09c36001af5c80394b5ba8746dcc6d8.tar.zst
nvim-treesitter-7a7a1591e09c36001af5c80394b5ba8746dcc6d8.zip
feat(rescript)!: update parser and queries
Breaking change: `(comment)` node is split into `(line_comment)` and `(block_comment)`
-rw-r--r--lua/nvim-treesitter/parsers.lua2
-rw-r--r--runtime/queries/rescript/highlights.scm5
-rw-r--r--runtime/queries/rescript/indents.scm5
-rw-r--r--runtime/queries/rescript/injections.scm5
4 files changed, 13 insertions, 4 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index be912395e..12ae87399 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -1906,7 +1906,7 @@ return {
},
rescript = {
install_info = {
- revision = '43c2f1f35024918d415dc933d4cc534d6419fedf',
+ revision = 'cafdc4ffad57bcdb8cd49f19a640d0fdfc929387',
url = 'https://github.com/rescript-lang/tree-sitter-rescript',
},
maintainers = { '@ribru17' },
diff --git a/runtime/queries/rescript/highlights.scm b/runtime/queries/rescript/highlights.scm
index e7cba9be8..c3e002dfd 100644
--- a/runtime/queries/rescript/highlights.scm
+++ b/runtime/queries/rescript/highlights.scm
@@ -1,4 +1,7 @@
-(comment) @comment @spell
+[
+ (line_comment)
+ (block_comment)
+] @comment @spell
; Identifiers
;------------
diff --git a/runtime/queries/rescript/indents.scm b/runtime/queries/rescript/indents.scm
index 0b635dd4d..70bd920a5 100644
--- a/runtime/queries/rescript/indents.scm
+++ b/runtime/queries/rescript/indents.scm
@@ -33,4 +33,7 @@
">"
">" @indent.end)
-(comment) @indent.auto
+[
+ (line_comment)
+ (block_comment)
+] @indent.auto
diff --git a/runtime/queries/rescript/injections.scm b/runtime/queries/rescript/injections.scm
index 434404bef..b40ceb6ae 100644
--- a/runtime/queries/rescript/injections.scm
+++ b/runtime/queries/rescript/injections.scm
@@ -1,4 +1,7 @@
-((comment) @injection.content
+([
+ (line_comment)
+ (block_comment)
+] @injection.content
(#set! injection.language "comment"))
(extension_expression