2020-10-13 23:55:37 +02:00
|
|
|
[
|
|
|
|
|
(function_definition)
|
2022-01-18 22:15:26 +01:00
|
|
|
(function_declaration)
|
2020-12-23 11:49:06 +00:00
|
|
|
(field)
|
2022-01-18 22:15:26 +01:00
|
|
|
(do_statement)
|
2022-07-21 13:48:03 +02:00
|
|
|
(method_index_expression)
|
2022-01-18 22:15:26 +01:00
|
|
|
(while_statement)
|
|
|
|
|
(repeat_statement)
|
2020-10-13 23:55:37 +02:00
|
|
|
(if_statement)
|
2022-07-21 13:48:03 +02:00
|
|
|
"then"
|
2020-10-13 23:55:37 +02:00
|
|
|
(for_statement)
|
2020-11-06 23:13:50 +01:00
|
|
|
(return_statement)
|
2022-01-18 22:15:26 +01:00
|
|
|
(table_constructor)
|
2020-10-13 23:55:37 +02:00
|
|
|
(arguments)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.begin
|
2020-10-13 23:55:37 +02:00
|
|
|
|
2022-02-05 03:08:18 +06:00
|
|
|
[
|
|
|
|
|
"end"
|
2022-02-06 19:31:24 +01:00
|
|
|
"}"
|
2024-08-04 18:26:18 -07:00
|
|
|
"]]"
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.end
|
2022-02-05 03:08:18 +06:00
|
|
|
|
2024-07-05 10:17:41 -07:00
|
|
|
(")" @indent.end
|
|
|
|
|
(#not-has-parent? @indent.end parameters))
|
|
|
|
|
|
2022-01-18 21:17:26 +06:00
|
|
|
(return_statement
|
|
|
|
|
(expression_list
|
2023-03-20 14:44:39 -07:00
|
|
|
(function_call))) @indent.dedent
|
2022-01-18 21:17:26 +06:00
|
|
|
|
2020-10-13 23:55:37 +02:00
|
|
|
[
|
|
|
|
|
"end"
|
2022-01-17 04:44:01 +06:00
|
|
|
"then"
|
2020-12-23 11:49:06 +00:00
|
|
|
"until"
|
2020-10-13 23:55:37 +02:00
|
|
|
"}"
|
|
|
|
|
")"
|
2022-01-17 04:44:01 +06:00
|
|
|
"elseif"
|
2022-01-18 22:15:26 +01:00
|
|
|
(elseif_statement)
|
2022-01-17 04:44:01 +06:00
|
|
|
"else"
|
|
|
|
|
(else_statement)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.branch
|
2021-03-01 20:20:37 +07:00
|
|
|
|
2023-03-20 14:44:39 -07:00
|
|
|
(comment) @indent.auto
|
|
|
|
|
|
|
|
|
|
(string) @indent.auto
|
2024-07-05 10:17:41 -07:00
|
|
|
|
|
|
|
|
(ERROR
|
|
|
|
|
"function") @indent.begin
|