mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
43
runtime/queries/lua/indents.scm
Normal file
43
runtime/queries/lua/indents.scm
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
[
|
||||
(function_definition)
|
||||
(function_declaration)
|
||||
(field)
|
||||
(do_statement)
|
||||
(method_index_expression)
|
||||
(while_statement)
|
||||
(repeat_statement)
|
||||
(if_statement)
|
||||
"then"
|
||||
(for_statement)
|
||||
(return_statement)
|
||||
(table_constructor)
|
||||
(arguments)
|
||||
(return_statement)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
"end"
|
||||
")"
|
||||
"}"
|
||||
] @indent.end
|
||||
|
||||
(return_statement
|
||||
(expression_list
|
||||
(function_call))) @indent.dedent
|
||||
|
||||
[
|
||||
"end"
|
||||
"then"
|
||||
"until"
|
||||
"}"
|
||||
")"
|
||||
"elseif"
|
||||
(elseif_statement)
|
||||
"else"
|
||||
(else_statement)
|
||||
] @indent.branch
|
||||
|
||||
(comment) @indent.auto
|
||||
|
||||
(string) @indent.auto
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue