feat(rescript)!: update parser and queries

Breaking change: `(comment)` node is split into `(line_comment)` and
`(block_comment)`
This commit is contained in:
Christian Clason 2026-04-24 17:01:28 +02:00 committed by Christian Clason
parent 0f2324ac88
commit 7a7a1591e0
4 changed files with 13 additions and 4 deletions

View file

@ -1906,7 +1906,7 @@ return {
}, },
rescript = { rescript = {
install_info = { install_info = {
revision = '43c2f1f35024918d415dc933d4cc534d6419fedf', revision = 'cafdc4ffad57bcdb8cd49f19a640d0fdfc929387',
url = 'https://github.com/rescript-lang/tree-sitter-rescript', url = 'https://github.com/rescript-lang/tree-sitter-rescript',
}, },
maintainers = { '@ribru17' }, maintainers = { '@ribru17' },

View file

@ -1,4 +1,7 @@
(comment) @comment @spell [
(line_comment)
(block_comment)
] @comment @spell
; Identifiers ; Identifiers
;------------ ;------------

View file

@ -33,4 +33,7 @@
">" ">"
">" @indent.end) ">" @indent.end)
(comment) @indent.auto [
(line_comment)
(block_comment)
] @indent.auto

View file

@ -1,4 +1,7 @@
((comment) @injection.content ([
(line_comment)
(block_comment)
] @injection.content
(#set! injection.language "comment")) (#set! injection.language "comment"))
(extension_expression (extension_expression