mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -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
52
runtime/queries/tact/indents.scm
Normal file
52
runtime/queries/tact/indents.scm
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
; indent.begin ; indent children when matching this node
|
||||
; ------------
|
||||
[
|
||||
; (..., ...)
|
||||
(parameter_list)
|
||||
(argument_list)
|
||||
; {..., ...}
|
||||
(instance_argument_list)
|
||||
(destruct_bind_list)
|
||||
; {...; ...}
|
||||
(message_body)
|
||||
(struct_body)
|
||||
(contract_body)
|
||||
(trait_body)
|
||||
(function_body)
|
||||
(block_statement)
|
||||
(asm_function_body)
|
||||
; misc.
|
||||
(binary_expression)
|
||||
(ternary_expression)
|
||||
(return_statement)
|
||||
(static_call_expression)
|
||||
(method_call_expression)
|
||||
] @indent.begin
|
||||
|
||||
; indent.branch ; dedent itself when matching this node
|
||||
; -------------
|
||||
[
|
||||
"}"
|
||||
")"
|
||||
">"
|
||||
] @indent.branch
|
||||
|
||||
; indent.end ; marks the end of indented block
|
||||
; ----------
|
||||
[
|
||||
"}"
|
||||
")"
|
||||
">"
|
||||
] @indent.end
|
||||
|
||||
; indent.auto ; behaves like 'autoindent' buffer option
|
||||
; -----------
|
||||
[
|
||||
(comment)
|
||||
(ERROR)
|
||||
] @indent.auto
|
||||
|
||||
; indent.align ; behaves like python aligned/hanging indent
|
||||
; indent.dedent ; dedent children when matching this node
|
||||
; indent.ignore ; do not indent in this node
|
||||
; indent.zero ; sets this node at position 0 (no indent)
|
||||
Loading…
Add table
Add a link
Reference in a new issue