nvim-treesitter/queries/xml/indents.scm
Shaun Attfield (shaun@xomen) 4b22291348 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.
2024-12-30 17:55:55 +01:00

16 lines
182 B
Scheme

(element) @indent.begin
[
(Attribute)
(AttlistDecl)
(contentspec)
] @indent.align
(ETag) @indent.branch
(doctypedecl) @indent.ignore
[
(Comment)
(ERROR)
] @indent.auto