json indent pattern: handle escape characters (#152475)

This commit is contained in:
Martin Aeschlimann
2022-06-17 16:31:03 +02:00
committed by GitHub
parent a3f6ec95e8
commit 083cf01e10

View File

@@ -16,7 +16,7 @@
{ "open": "`", "close": "`", "notIn": ["string", "comment"] } { "open": "`", "close": "`", "notIn": ["string", "comment"] }
], ],
"indentationRules": { "indentationRules": {
"increaseIndentPattern": "({+(?=([^\"]*\"[^\"]*\")*[^\"}]*$))|(\\[+(?=([^\"]*\"[^\"]*\")*[^\"\\]]*$))", "increaseIndentPattern": "({+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"}]*)$)|(\\[+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"\\]]*)$)",
"decreaseIndentPattern": "^\\s*[}\\]],?\\s*$" "decreaseIndentPattern": "^\\s*[}\\]],?\\s*$"
} }
} }