nvim-treesitter/queries/php/indents.scm
przepompownia 1cec3899f5 indents(php): @auto on comment and ERROR
Currently with
```vim
setlocal autoindent
setlocal smartindent
```
in `after/indent/php.vim` it allows correct indentation
inside PHP docblocks.
2022-05-15 14:52:43 +02:00

23 lines
272 B
Scheme

[
(array_creation_expression)
(compound_statement)
(declaration_list)
(binary_expression)
(return_statement)
(arguments)
(formal_parameters)
] @indent
[
")"
"}"
"]"
] @branch
[
(comment)
] @auto
(compound_statement "}" @indent_end)
(ERROR) @auto