yaml: fix the anchor group in increaseIndentPattern

The pattern had an HTML-escaped "&" where it meant "&", so a key
followed by an anchor (foo: &anchor) never increased the indent.
This commit is contained in:
dualfroz committed 2026-10-17 04:24:09 +02:00
1 parent da856c50ae
commit 6d1a2764c0
2 files changed
+44 -2

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@
}
},
"indentationRules": {
"increaseIndentPattern": "^\\s*.*(:|-) ?(&\\w+)?(\\{[^}\"']*|\\([^)\"']*)?$",
"increaseIndentPattern": "^\\s*.*(:|-) ?(&\\w+)?(\\{[^}\"']*|\\([^)\"']*)?$",
"decreaseIndentPattern": "^\\s+\\}$"
}
}