-
Notifications
You must be signed in to change notification settings - Fork 21
/
graphql.js.json
44 lines (44 loc) · 1.24 KB
/
graphql.js.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"fileTypes": ["js", "jsx", "ts", "tsx", "vue", "svelte"],
"injectionSelector": "L:source -string -comment",
"patterns": [
{
"contentName": "meta.embedded.block.graphql",
"begin": "(?:Relay\\.QL|gql|graphql(\\.experimental)?)\\s*(?:<.*?>\\s*)?`",
"end": "`",
"patterns": [{ "include": "source.graphql" }]
},
{
"contentName": "meta.embedded.block.graphql",
"begin": "`(\\s*#[ ]*(gql|graphql|GraphQL))",
"beginCaptures": {
"1": {
"name": "meta.embedded.block.graphql comment.line.graphql.js"
},
"2": {
"name": "markup.italic"
}
},
"end": "`",
"patterns": [{ "include": "source.graphql" }]
},
{
"contentName": "meta.embedded.block.graphql",
"begin": "(?:gql|graphql)\\s*(?:<.*?>\\s*)?\\(\\s*`",
"end": "`\\s*\\)",
"patterns": [{ "include": "source.graphql" }]
},
{
"contentName": "meta.embedded.block.graphql",
"begin": "(?:\\/\\*[\\s\\*]*(gql|graphql|GraphQL)\\s*\\*\\/)\\s*(`)",
"beginCaptures": {
"1": {
"name": "markup.italic"
}
},
"end": "`",
"patterns": [{ "include": "source.graphql" }]
}
],
"scopeName": "inline.graphql"
}