aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python/parenthesized_conditions.py
diff options
context:
space:
mode:
authorGrace Petryk <gracepetryk99@gmail.com>2024-07-16 04:13:41 -0700
committerGitHub <noreply@github.com>2024-07-16 20:13:41 +0900
commitf16a77583047d6d3ea684092c679bbe88398cb01 (patch)
tree7c0fce69fd9468f46aca3bd192274a0fcb6603c8 /tests/indent/python/parenthesized_conditions.py
parentfeat(templ): add folds (diff)
downloadnvim-treesitter-f16a77583047d6d3ea684092c679bbe88398cb01.tar
nvim-treesitter-f16a77583047d6d3ea684092c679bbe88398cb01.tar.gz
nvim-treesitter-f16a77583047d6d3ea684092c679bbe88398cb01.tar.bz2
nvim-treesitter-f16a77583047d6d3ea684092c679bbe88398cb01.tar.lz
nvim-treesitter-f16a77583047d6d3ea684092c679bbe88398cb01.tar.xz
nvim-treesitter-f16a77583047d6d3ea684092c679bbe88398cb01.tar.zst
nvim-treesitter-f16a77583047d6d3ea684092c679bbe88398cb01.zip
feat(python): Improved python indentation (#6859)
* feat: improve python indentation * use lua-match * revert concatenated_string changes, handle function def hanging indents * lint * add delimiters to param query * add test cases
Diffstat (limited to 'tests/indent/python/parenthesized_conditions.py')
-rw-r--r--tests/indent/python/parenthesized_conditions.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/indent/python/parenthesized_conditions.py b/tests/indent/python/parenthesized_conditions.py
new file mode 100644
index 000000000..d30f2b1af
--- /dev/null
+++ b/tests/indent/python/parenthesized_conditions.py
@@ -0,0 +1,35 @@
+if (
+ True
+ or 1
+ or False
+):
+ pass
+
+if (
+ True
+ or 1
+ or False):
+ pass
+
+if (True
+ or 1
+ or False):
+ pass
+
+while (
+ False
+ or 1
+ or False
+):
+ pass
+
+while (
+ False
+ or 1
+ or False):
+ pass
+
+while (False
+ or 1
+ or False):
+ pass