Skip to content

Commit

Permalink
Improve #include performance in long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Mar 12, 2024
1 parent 6e3ce56 commit 4b27299
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions syntaxes/json.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -855,16 +855,16 @@
}
},
{
"match": "(?<!\\G)#(?=\")",
"name": "keyword.json.tm markup.strikethrough.json.tm"
},
{
"begin": "#",
"begin": "#(?!\")",
"end": "(?=\")",
"beginCaptures": { "0": { "name": "keyword.json.tm" } },
"contentName": "variable.json.tm",
"patterns": [ { "include": "#escape-characters" } ]
},
{
"match": "#",
"name": "keyword.json.tm markup.strikethrough.json.tm"
},
{ "include": "#scope-string" }
]
},
Expand Down Expand Up @@ -1182,7 +1182,6 @@
"name": "constant.character.escape.json.tm"
},
{

"match": "(\\\\u)(?>(\\h{4})|([^\"].{,3}))",
"captures": {
"1": { "name": "constant.character.escape.tm" },
Expand Down

0 comments on commit 4b27299

Please sign in to comment.