Skip to content

Commit

Permalink
use source.ts includes to ensure highlighting works on github
Browse files Browse the repository at this point in the history
  • Loading branch information
evoactivity authored Feb 5, 2024
1 parent 384dee2 commit 04352c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions syntaxes/edge.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Edge",
"scopeName": "text.html.edge",
"injections": {
"text.html.edge - (meta.embedded | meta.tag | comment.block.edge), L:(text.html.edge meta.tag - (comment.block.edge | meta.embedded.block.edge)), L:(source.js.embedded.html - (comment.block.edge | meta.embedded.block.edge))": {
"text.html.edge - (meta.embedded | meta.tag | comment.block.edge), L:(text.html.edge meta.tag - (comment.block.edge | meta.embedded.block.edge)), L:(source.ts.embedded.html - (comment.block.edge | meta.embedded.block.edge))": {
"patterns": [
{
"include": "#comment"
Expand Down Expand Up @@ -59,7 +59,7 @@
"0": { "name": "punctuation.mustache.end" }
},
"name": "meta.embedded.block.javascript",
"patterns": [{ "include": "source.js#expression" }]
"patterns": [{ "include": "source.ts#expression" }]
},
"mustache": {
"begin": "\\{{",
Expand All @@ -71,15 +71,15 @@
"0": { "name": "punctuation.mustache.end" }
},
"name": "meta.embedded.block.javascript",
"patterns": [{ "include": "source.js#expression" }]
"patterns": [{ "include": "source.ts#expression" }]
},
"nonSeekableTag": {
"match": "^(\\s*)((@{1,2})(!)?([a-zA-Z._]+))(~)?$",
"captures": {
"2": { "name": "support.function.edge" }
},
"name": "meta.embedded.block.javascript",
"patterns": [{ "include": "source.js#expression" }]
"patterns": [{ "include": "source.ts#expression" }]
},
"tag": {
"begin": "^(\\s*)((@{1,2})(!)?([a-zA-Z._]+)(\\s{0,2}))(\\()",
Expand All @@ -92,7 +92,7 @@
"0": { "name": "punctuation.paren.close" }
},
"name": "meta.embedded.block.javascript",
"patterns": [{ "include": "source.js#expression" }]
"patterns": [{ "include": "source.ts#expression" }]
}
},
"patterns": [
Expand Down

0 comments on commit 04352c4

Please sign in to comment.