Skip to content

Commit a02ccb6

Browse files
committed
Fix PCRE error
1 parent d644c82 commit a02ccb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntaxes/json.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,11 +1007,11 @@
10071007
},
10081008
"capture": {
10091009
"comment": "\"0\": { ... }",
1010-
"begin": "(\")([0-9]{1,3})(.*?(?<!\\\\)\\\\{2}*|.*)(\")",
1010+
"begin": "(\")([0-9]{1,3})((?>[^\\\\\"]++|\\\\.)*+)(\")",
10111011
"end": "(?<=})|(?=[},])",
10121012
"beginCaptures": {
10131013
"2": { "name": "constant.numeric.json.tm" },
1014-
"3Every char after the numeric is ignored. 0-9": { "name": "punctuation.definition.tag.json.tm regex" }
1014+
"3 VSCode ignores everything after the initial number.": { "name": "punctuation.definition.tag.json.tm regex" }
10151015
},
10161016
"patterns": [
10171017
{

0 commit comments

Comments
 (0)