feat: rewrite indent module

This commit is contained in:
Munif Tanjim 2022-01-18 21:17:26 +06:00 committed by Christian Clason
parent baf94219aa
commit c0110e34aa
13 changed files with 136 additions and 182 deletions

View file

@ -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