feat: add rescript parser and queries (#6671)

This commit is contained in:
Riley Bruins 2024-07-27 08:34:30 -07:00 committed by GitHub
parent 7cec6219c4
commit f97e0de005
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 748 additions and 0 deletions

View file

@ -0,0 +1,36 @@
[
(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)
(comment) @indent.auto