mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
feat: rewrite indent module
This commit is contained in:
parent
baf94219aa
commit
c0110e34aa
13 changed files with 136 additions and 182 deletions
|
|
@ -1,7 +1,6 @@
|
|||
[
|
||||
(function_definition)
|
||||
(function_declaration)
|
||||
(variable_declaration)
|
||||
(field)
|
||||
(do_statement)
|
||||
(while_statement)
|
||||
|
|
@ -11,8 +10,13 @@
|
|||
(return_statement)
|
||||
(table_constructor)
|
||||
(arguments)
|
||||
(return_statement)
|
||||
] @indent
|
||||
|
||||
(return_statement
|
||||
(expression_list
|
||||
(function_call))) @dedent
|
||||
|
||||
[
|
||||
"do"
|
||||
"end"
|
||||
|
|
@ -30,4 +34,4 @@
|
|||
|
||||
(comment) @ignore
|
||||
|
||||
(string) @ignore
|
||||
(string) @auto
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue