summaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-01-22 14:50:51 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-02-05 18:54:55 +0100
commit059fbc487c62a5e109143254b720a5dc33201a34 (patch)
tree24fac44f1ef8996b99b9323bcb0178ccca899aea /queries/python
parentindents(cpp): indent at field_initializer_list (diff)
downloadnvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar
nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.gz
nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.bz2
nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.lz
nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.xz
nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.tar.zst
nvim-treesitter-059fbc487c62a5e109143254b720a5dc33201a34.zip
indents: allow aligned_indent for unfinished calls in C and Python
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/indents.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/queries/python/indents.scm b/queries/python/indents.scm
index 25f622909..e83b3762f 100644
--- a/queries/python/indents.scm
+++ b/queries/python/indents.scm
@@ -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