From 4b222913486ec0a5983efa82b0649a2ab87cf1f0 Mon Sep 17 00:00:00 2001 From: "Shaun Attfield (shaun@xomen)" Date: Fri, 27 Dec 2024 09:54:04 +0200 Subject: 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. --- queries/xml/indents.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2