mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 06:20:01 -04:00
indents: allow aligned_indent for unfinished calls in C and Python
This commit is contained in:
parent
62982378b8
commit
059fbc487c
7 changed files with 26 additions and 3 deletions
|
|
@ -7,7 +7,6 @@
|
|||
(enumerator_list)
|
||||
(struct_specifier)
|
||||
(compound_literal_expression)
|
||||
(parameter_list)
|
||||
(initializer_list)
|
||||
(concatenated_string)
|
||||
(while_statement)
|
||||
|
|
@ -44,3 +43,8 @@
|
|||
] @ignore
|
||||
|
||||
(binary_expression) @auto
|
||||
|
||||
((ERROR (parameter_declaration)) @aligned_indent
|
||||
(#set! "delimiter" "()"))
|
||||
([(argument_list) (parameter_list)] @aligned_indent
|
||||
(#set! "delimiter" "()"))
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@
|
|||
condition: (parenthesized_expression) @aligned_indent
|
||||
(#set! "delimiter" "()")
|
||||
)
|
||||
((ERROR "(" . (_)) @aligned_indent
|
||||
(#set! "delimiter" "()"))
|
||||
((argument_list) @aligned_indent
|
||||
(#set! "delimiter" "()"))
|
||||
((argument_list) @aligned_indent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue