1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-27 12:10:06 +08:00
SpaceVim/bundle/nvim-treesitter/queries/lua/indents.scm
2022-04-14 12:01:23 +08:00

41 lines
492 B
Scheme
Vendored

[
(function_definition)
(function_declaration)
(field)
(do_statement)
(while_statement)
(repeat_statement)
(if_statement)
(for_statement)
(return_statement)
(table_constructor)
(arguments)
(return_statement)
] @indent
[
"end"
")"
"}"
] @indent_end
(return_statement
(expression_list
(function_call))) @dedent
[
"end"
"then"
"until"
"}"
")"
"elseif"
(elseif_statement)
"else"
(else_statement)
] @branch
(comment) @auto
(string) @auto