Skip to content

Commit f977610

Browse files
committed
Correctly highlight comma's , during initial parse
1 parent 676da6d commit f977610

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

syntaxes/json.tmLanguage.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@
8484
{ "include": "#json-array" },
8585
{ "include": "#json-pair" },
8686
{ "include": "#comments" },
87+
{
88+
"match": ",",
89+
"name": "punctuation.separator.json.tm"
90+
},
8791
{
8892
"comment": "This must be strict. So to reduce false positives",
8993
"begin": "\\A(?!$|\\s*{\\s*(?>$|})|\\s*\\[\\s*(?>$|\\[|{)|[^\t]*\t|(?>[^\\\\\"]+|\\\\.)*+.)",
@@ -318,7 +322,7 @@
318322
"patterns": [ { "include": "#injection-string" } ]
319323
},
320324
{
321-
"comment": "An array of `\"injectionSelector\"` is not offically supported by VSCode TextMate. But still happens to work because JavaScript",
325+
"comment": "An array of `\"injectionSelector\"` is not offically supported by VSCode TextMate. But still happens to work because JavaScript",
322326
"begin": "\\[",
323327
"end": "]",
324328
"beginCaptures": { "0": { "name": "punctuation.definition.array.begin.json.tm" } },

0 commit comments

Comments
 (0)