nvim-treesitter/runtime/queries/rescript/indents.scm
Christian Clason 7a7a1591e0 feat(rescript)!: update parser and queries
Breaking change: `(comment)` node is split into `(line_comment)` and
`(block_comment)`
2026-07-18 22:23:55 +02:00

39 lines
582 B
Scheme

[
(block)
(record_type)
(record)
(parenthesized_expression)
(call_expression)
(function_type_parameters)
(function)
(switch_match)
(let_declaration)
(jsx_element)
(jsx_fragment)
(jsx_self_closing_element)
(object_type)
] @indent.begin
[
"}"
")"
(jsx_closing_element)
] @indent.branch @indent.end
(jsx_self_closing_element
"/" @indent.branch
">"? @indent.end)
; </> is captured as 3 different anonymous nodes
(jsx_fragment
"<"
"<" @indent.branch)
(jsx_fragment
">"
">" @indent.end)
[
(line_comment)
(block_comment)
] @indent.auto