aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python
diff options
context:
space:
mode:
authorPham Huy Hoang <hoangtun0810@gmail.com>2023-03-25 09:29:32 +0900
committerAmaan Qureshi <amaanq12@gmail.com>2023-03-25 00:31:57 -0400
commit1ffa01985651f6a5ba88d01e56f09cb76ff6e79a (patch)
treec7a08558dca3404298792bcb978cb53e93be19d5 /tests/indent/python
parentfix: uninstall function in the install.lua (diff)
downloadnvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar
nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.gz
nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.bz2
nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.lz
nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.xz
nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.zst
nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.zip
feat(python): add match-case indents
Diffstat (limited to 'tests/indent/python')
-rw-r--r--tests/indent/python/match_case.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/indent/python/match_case.py b/tests/indent/python/match_case.py
new file mode 100644
index 000000000..88b56af10
--- /dev/null
+++ b/tests/indent/python/match_case.py
@@ -0,0 +1,15 @@
+a = 0
+
+def test_match_case():
+ match a:
+ case 1:
+ return
+
+
+def test_match():
+ match a:
+
+
+def test_case():
+ match a:
+ case b: