mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
36
runtime/queries/rescript/indents.scm
Normal file
36
runtime/queries/rescript/indents.scm
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue