diff options
| author | Shaun Attfield (shaun@xomen) <heurist+git@gmail.com> | 2024-12-27 09:54:04 +0200 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2024-12-30 17:55:55 +0100 |
| commit | 4b222913486ec0a5983efa82b0649a2ab87cf1f0 (patch) | |
| tree | ffc8faf635e86a9d31f851c6db926c44ca27f9d9 /queries | |
| parent | fix(leo): indent } now properly dedents (diff) | |
| download | nvim-treesitter-4b222913486ec0a5983efa82b0649a2ab87cf1f0.tar nvim-treesitter-4b222913486ec0a5983efa82b0649a2ab87cf1f0.tar.gz nvim-treesitter-4b222913486ec0a5983efa82b0649a2ab87cf1f0.tar.bz2 nvim-treesitter-4b222913486ec0a5983efa82b0649a2ab87cf1f0.tar.lz nvim-treesitter-4b222913486ec0a5983efa82b0649a2ab87cf1f0.tar.xz nvim-treesitter-4b222913486ec0a5983efa82b0649a2ab87cf1f0.tar.zst nvim-treesitter-4b222913486ec0a5983efa82b0649a2ab87cf1f0.zip | |
fix(xml): properly indent closing tags
Confusing as it is,
https://github.com/heurist/nvim-treesitter/blob/master/CONTRIBUTING.md?plain=1#L394
says:
```query
@indent.dedent ; dedent children when matching this node
@indent.branch ; dedent itself when matching this node
```
@indent.branch is therefore the approriate choice for de-indenting.
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/xml/indents.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/xml/indents.scm b/queries/xml/indents.scm index 24cd75cfa..803c6e8a1 100644 --- a/queries/xml/indents.scm +++ b/queries/xml/indents.scm @@ -6,7 +6,7 @@ (contentspec) ] @indent.align -(ETag) @indent.dedent +(ETag) @indent.branch (doctypedecl) @indent.ignore |
