2022-04-14 12:01:23 +08:00
|
|
|
[
|
|
|
|
(function_definition)
|
|
|
|
(function_declaration)
|
|
|
|
(field)
|
|
|
|
(do_statement)
|
2023-06-18 14:17:38 +08:00
|
|
|
(method_index_expression)
|
2022-04-14 12:01:23 +08:00
|
|
|
(while_statement)
|
|
|
|
(repeat_statement)
|
|
|
|
(if_statement)
|
2023-06-18 14:17:38 +08:00
|
|
|
"then"
|
2022-04-14 12:01:23 +08:00
|
|
|
(for_statement)
|
|
|
|
(return_statement)
|
|
|
|
(table_constructor)
|
|
|
|
(arguments)
|
|
|
|
(return_statement)
|
2023-06-18 14:17:38 +08:00
|
|
|
] @indent.begin
|
2022-04-14 12:01:23 +08:00
|
|
|
|
|
|
|
[
|
|
|
|
"end"
|
|
|
|
")"
|
|
|
|
"}"
|
2023-06-18 14:17:38 +08:00
|
|
|
] @indent.end
|
2022-04-14 12:01:23 +08:00
|
|
|
|
|
|
|
(return_statement
|
|
|
|
(expression_list
|
2023-06-18 14:17:38 +08:00
|
|
|
(function_call))) @indent.dedent
|
2022-04-14 12:01:23 +08:00
|
|
|
|
|
|
|
[
|
|
|
|
"end"
|
|
|
|
"then"
|
|
|
|
"until"
|
|
|
|
"}"
|
|
|
|
")"
|
|
|
|
"elseif"
|
|
|
|
(elseif_statement)
|
|
|
|
"else"
|
|
|
|
(else_statement)
|
2023-06-18 14:17:38 +08:00
|
|
|
] @indent.branch
|
|
|
|
|
|
|
|
(comment) @indent.auto
|
2022-04-14 12:01:23 +08:00
|
|
|
|
2023-06-18 14:17:38 +08:00
|
|
|
(string) @indent.auto
|
2022-04-14 12:01:23 +08:00
|
|
|
|