diff --git a/extensions/json/language-configuration.json b/extensions/json/language-configuration.json index 2dc97d50dbb..f9ec3fec781 100644 --- a/extensions/json/language-configuration.json +++ b/extensions/json/language-configuration.json @@ -16,7 +16,7 @@ { "open": "`", "close": "`", "notIn": ["string", "comment"] } ], "indentationRules": { - "increaseIndentPattern": "({+(?=([^\"]*\"[^\"]*\")*[^\"}]*$))|(\\[+(?=([^\"]*\"[^\"]*\")*[^\"\\]]*$))", + "increaseIndentPattern": "({+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"}]*)$)|(\\[+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"\\]]*)$)", "decreaseIndentPattern": "^\\s*[}\\]],?\\s*$" } }