nvim-treesitter/queries/php/indents.scm

29 lines
383 B
Scheme
Raw Normal View History

2021-03-19 11:16:02 +09:00
[
(array_creation_expression)
(compound_statement)
(declaration_list)
(binary_expression)
(return_statement)
(arguments)
(formal_parameters)
2022-10-07 11:08:29 +02:00
(enum_declaration_list)
(switch_block)
(match_block)
(case_statement)
"["
] @indent.begin
2021-03-19 11:16:02 +09:00
[
")"
"}"
"]"
] @indent.branch
2021-03-19 11:16:02 +09:00
[
(comment)
] @indent.auto
(compound_statement "}" @indent.end)
(ERROR) @indent.auto