mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
68
runtime/queries/php_only/indents.scm
Normal file
68
runtime/queries/php_only/indents.scm
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
[
|
||||
(array_creation_expression)
|
||||
(parenthesized_expression)
|
||||
(compound_statement)
|
||||
(declaration_list)
|
||||
(member_call_expression)
|
||||
(binary_expression)
|
||||
(return_statement)
|
||||
(arguments)
|
||||
(formal_parameters)
|
||||
(enum_declaration_list)
|
||||
(switch_block)
|
||||
(match_block)
|
||||
(case_statement)
|
||||
(default_statement)
|
||||
(property_hook_list)
|
||||
] @indent.begin
|
||||
|
||||
(return_statement
|
||||
[
|
||||
(object_creation_expression)
|
||||
(anonymous_function)
|
||||
(arrow_function)
|
||||
(match_expression)
|
||||
]) @indent.dedent
|
||||
|
||||
[
|
||||
")"
|
||||
"}"
|
||||
"]"
|
||||
] @indent.branch
|
||||
|
||||
(comment) @indent.auto
|
||||
|
||||
(arguments
|
||||
")" @indent.end)
|
||||
|
||||
(formal_parameters
|
||||
")" @indent.end)
|
||||
|
||||
(compound_statement
|
||||
"}" @indent.end)
|
||||
|
||||
(declaration_list
|
||||
"}" @indent.end)
|
||||
|
||||
(enum_declaration_list
|
||||
"}" @indent.end)
|
||||
|
||||
(return_statement
|
||||
";" @indent.end)
|
||||
|
||||
(property_hook_list
|
||||
"}" @indent.end)
|
||||
|
||||
(ERROR
|
||||
"(" @indent.align
|
||||
.
|
||||
(_)
|
||||
(#set! indent.open_delimiter "(")
|
||||
(#set! indent.close_delimiter ")"))
|
||||
|
||||
(ERROR
|
||||
"[" @indent.align
|
||||
.
|
||||
(_)
|
||||
(#set! indent.open_delimiter "[")
|
||||
(#set! indent.close_delimiter "]"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue