summaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorJędrzej Boczar <yendreij@gmail.com>2021-01-08 00:33:15 +0100
committerThomas Vigouroux <tomvig38@gmail.com>2021-01-14 13:54:43 +0100
commite6b8c5e680fa11bee487230e1b8bc32b5aa647d5 (patch)
tree5a14de17bd2b99ed8fb21bfdf1eb281345380a27 /queries/python
parentindent: introduce @return to further tune indentation on `o`/`<cr>` (diff)
downloadnvim-treesitter-e6b8c5e680fa11bee487230e1b8bc32b5aa647d5.tar
nvim-treesitter-e6b8c5e680fa11bee487230e1b8bc32b5aa647d5.tar.gz
nvim-treesitter-e6b8c5e680fa11bee487230e1b8bc32b5aa647d5.tar.bz2
nvim-treesitter-e6b8c5e680fa11bee487230e1b8bc32b5aa647d5.tar.lz
nvim-treesitter-e6b8c5e680fa11bee487230e1b8bc32b5aa647d5.tar.xz
nvim-treesitter-e6b8c5e680fa11bee487230e1b8bc32b5aa647d5.tar.zst
nvim-treesitter-e6b8c5e680fa11bee487230e1b8bc32b5aa647d5.zip
indent: add Python @return queries
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/indents.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/python/indents.scm b/queries/python/indents.scm
index d629c954f..8931e3155 100644
--- a/queries/python/indents.scm
+++ b/queries/python/indents.scm
@@ -36,3 +36,9 @@
(except_clause)
(finally_clause)
] @branch
+
+[
+ (return_statement)
+ (pass_statement)
+ (raise_statement)
+] @return