aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorEvan <esn89@users.noreply.github.com>2020-12-16 09:42:48 -0800
committerThomas Vigouroux <tomvig38@gmail.com>2020-12-18 16:42:05 +0100
commitc200de65aa40b1a30e9319f65877fa64cf75aa26 (patch)
treea3cf2014e9ef82d1ad175ac41155e6a83a0c51b5 /queries/python
parentfix(query): add noop handler for make-range (diff)
downloadnvim-treesitter-c200de65aa40b1a30e9319f65877fa64cf75aa26.tar
nvim-treesitter-c200de65aa40b1a30e9319f65877fa64cf75aa26.tar.gz
nvim-treesitter-c200de65aa40b1a30e9319f65877fa64cf75aa26.tar.bz2
nvim-treesitter-c200de65aa40b1a30e9319f65877fa64cf75aa26.tar.lz
nvim-treesitter-c200de65aa40b1a30e9319f65877fa64cf75aa26.tar.xz
nvim-treesitter-c200de65aa40b1a30e9319f65877fa64cf75aa26.tar.zst
nvim-treesitter-c200de65aa40b1a30e9319f65877fa64cf75aa26.zip
Create indents.scm for python
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/indents.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/queries/python/indents.scm b/queries/python/indents.scm
new file mode 100644
index 000000000..c1adc58bd
--- /dev/null
+++ b/queries/python/indents.scm
@@ -0,0 +1,14 @@
+[
+ (function_definition)
+ (if_statement)
+ (with_statement)
+ (try_statement)
+ (for_statement)
+ (for_in_clause)
+ (class_definition)
+] @indent
+
+[
+ "elif"
+ "else"
+] @branch