Skip to content

Commit

Permalink
Add new keyword to enable GrahpQL syntax highlighting (#57)
Browse files Browse the repository at this point in the history
Also solves #55 and #52
  • Loading branch information
Einar Löve authored and kumarharsh committed Nov 29, 2017
1 parent 0bb8ccb commit 3d6028b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions syntaxes/graphql.js.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,28 @@
"patterns": [
{ "include": "source.graphql" }
]
},
{
"name": "taggedTemplates",
"contentName": "meta.embedded.block.graphql",
"begin": "(`)(#graphql)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.string.template.begin.js"
},
"2": {
"name": "comment.line.graphql.js"
}
},
"end": "`",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.template.end.js"
}
},
"patterns": [
{ "include": "source.graphql" }
]
}
],
"scopeName": "inline.graphql"
Expand Down

0 comments on commit 3d6028b

Please sign in to comment.