diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2023-03-25 09:51:41 +0900 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-25 00:31:57 -0400 |
| commit | c9ef5e58f7d59aba875324825ff47900d0be61f2 (patch) | |
| tree | 5f13a56d1140931866003b9ba18957a912d6977b /queries/python | |
| parent | feat(python): add match-case indents (diff) | |
| download | nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.gz nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.bz2 nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.lz nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.xz nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.zst nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.zip | |
feat(python): add break/continue dedent
Diffstat (limited to 'queries/python')
| -rw-r--r-- | queries/python/indents.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/queries/python/indents.scm b/queries/python/indents.scm index e66f39696..efcdba6b2 100644 --- a/queries/python/indents.scm +++ b/queries/python/indents.scm @@ -78,6 +78,11 @@ (ERROR "{" @indent.align (#set! indent.open_delimiter "{") (#set! indent.close_delimiter "}") . (_)) +[ + (break_statement) + (continue_statement) +] @indent.dedent + (parenthesized_expression ")" @indent.end) (generator_expression ")" @indent.end) (list_comprehension "]" @indent.end) |
