json: use default word pattern (#151754)

This commit is contained in:
Martin Aeschlimann
2022-06-13 14:36:42 +02:00
committed by GitHub
parent 53130238b4
commit 375681e51e
6 changed files with 150 additions and 86 deletions

View File

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