mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(indent): support @aligned_indent for python
This commit is contained in:
parent
46438064ac
commit
bb60706433
5 changed files with 67 additions and 17 deletions
|
|
@ -269,11 +269,12 @@ the node describing the language and `@content` to describe the injection region
|
|||
### Indents
|
||||
|
||||
```
|
||||
@indent ; Indent children when matching this node
|
||||
@dedent ; Dedent children when matching this node
|
||||
@branch ; Dedent itself when matching this node
|
||||
@ignore ; Do not indent in this node
|
||||
@auto ; Behaves like 'autoindent' buffer option
|
||||
@indent ; Indent children when matching this node
|
||||
@aligned_indent ; Behaves like python aligned/hanging indent
|
||||
@dedent ; Dedent children when matching this node
|
||||
@branch ; Dedent itself when matching this node
|
||||
@ignore ; Do not indent in this node
|
||||
@auto ; Behaves like 'autoindent' buffer option
|
||||
```
|
||||
|
||||
[Zulip]: nvim-treesitter.zulipchat.com
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue