-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathGraphQL.re.tmLanguage
More file actions
72 lines (72 loc) · 1.58 KB
/
GraphQL.re.tmLanguage
File metadata and controls
72 lines (72 loc) · 1.58 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>re</string>
<string>ml</string>
</array>
<key>injectionSelector</key>
<string>L:source -string -comment</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>({)(gql)(\|)</string>
<key>contentName</key>
<string>meta.embedded.block.graphql</string>
<key>end</key>
<string>(\|)(\2)(})</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.graphql</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(\[%graphql)s*$</string>
<key>contentName</key>
<string>meta.embedded.block.graphql</string>
<key>end</key>
<string>(?<=])</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>^\s*({\|)$</string>
<key>end</key>
<string>^\s*(\|})</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.graphql</string>
</dict>
</array>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(\[%graphql {\|)</string>
<key>contentName</key>
<string>meta.embedded.block.graphql</string>
<key>end</key>
<string>(\|}( )?])</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.graphql</string>
</dict>
</array>
</dict>
</array>
<key>scopeName</key>
<string>inline.graphql.re</string>
</dict>
</plist>