Skip to content

Commit 53e5377

Browse files
committed
feat(scopes): Support colorize-tests.json
1 parent 4a08b5f commit 53e5377

3 files changed

Lines changed: 1766 additions & 0 deletions

File tree

syntaxes/scopes.tmLanguage.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"L:source.json.embedded .meta.contributes. .meta.grammars. meta.structure.array.json meta.structure.dictionary.json meta.structure.array.json\n(.meta.balancedBracketScopes. | .meta.unbalancedBracketScopes. | .meta.injectTo.)\n-meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json meta.structure.array.json meta.structure.array.json\n-meta.embedded.json.textmate.source -comment",
99
"L:source.json.embedded .meta.contributes. .meta.grammars. meta.structure.array.json .meta.scopeName. string.quoted.double.json\n-meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json meta.structure.array.json\n-meta.embedded.json.textmate.source -comment",
1010
"L:source.json.embedded meta.structure.array.json .meta.t. string.quoted.double.json\n-meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json meta.structure.array.json\n-meta.embedded.json.textmate.source -comment",
11+
"L:source.json.embedded meta.structure.array.json .meta.lines. meta.structure.array.json .meta.tokens. meta.structure.array.json .meta.scopes. meta.structure.array.json string.quoted.double.json\n-meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json meta.structure.array.json meta.structure.array.json meta.structure.array.json meta.structure.array.json\n-meta.embedded.json.textmate.source -comment",
1112
"L:source.json.embedded .meta.contributes. .meta.configurationDefaults. .meta.editor.tokenColorCustomizations. .meta.textMateRules. meta.structure.array.json .meta.scope. string.quoted.double.json\n-meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json meta.structure.array.json meta.structure.array.json\n-.meta.scope. meta.structure.array.json meta.structure.array.json\n-meta.structure.array.json meta.structure.array.json .meta.scope.\n-meta.embedded.json.textmate.source -comment",
1213
"L:source.json.comments.embedded .meta.settings. .meta.editor.tokenColorCustomizations. .meta.textMateRules. meta.structure.array.json.comments .meta.scope. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments .meta.scope.\n-.meta.scope. meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.json.textmate.source -comment",
1314
"L:source.json.comments.embedded .meta.editor.tokenColorCustomizations. .meta.textMateRules. meta.structure.array.json.comments .meta.scope. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments .meta.scope.\n-.meta.scope. meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.json.textmate.source -comment",
Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
[
2+
{
3+
"grammars": [
4+
"fixtures/groovy.json"
5+
],
6+
"grammarPath": "fixtures/groovy.json",
7+
"desc": "Groovy",
8+
"lines": [
9+
{
10+
"line": "class BootStrap { }",
11+
"tokens": [
12+
{
13+
"value": "class",
14+
"scopes": [
15+
"source.groovy",
16+
"meta.definition.class.groovy",
17+
"meta.class.identifier.groovy",
18+
"storage.modifier.groovy"
19+
]
20+
},
21+
{
22+
"value": " ",
23+
"scopes": [
24+
"source.groovy",
25+
"meta.definition.class.groovy",
26+
"meta.class.identifier.groovy"
27+
]
28+
},
29+
{
30+
"value": "BootStrap",
31+
"scopes": [
32+
"source.groovy",
33+
"meta.definition.class.groovy",
34+
"meta.class.identifier.groovy",
35+
"entity.name.type.class.groovy"
36+
]
37+
},
38+
{
39+
"value": " ",
40+
"scopes": [
41+
"source.groovy",
42+
"meta.definition.class.groovy"
43+
]
44+
},
45+
{
46+
"value": "{",
47+
"scopes": [
48+
"source.groovy",
49+
"meta.definition.class.groovy",
50+
"meta.class.body.groovy"
51+
]
52+
},
53+
{
54+
"value": " ",
55+
"scopes": [
56+
"source.groovy",
57+
"meta.definition.class.groovy",
58+
"meta.class.body.groovy"
59+
]
60+
},
61+
{
62+
"value": "}",
63+
"scopes": [
64+
"source.groovy",
65+
"meta.definition.class.groovy",
66+
"punctuation.section.class.end.groovy"
67+
]
68+
}
69+
]
70+
}
71+
]
72+
},
73+
{
74+
"grammars": [
75+
"fixtures/markdown.plist"
76+
],
77+
"grammarPath": "fixtures/markdown.plist",
78+
"desc": "Nested repositories in Markdown",
79+
"lines": [
80+
{
81+
"line": "This is a paragraph",
82+
"tokens": [
83+
{
84+
"value": "This is a paragraph",
85+
"scopes": [
86+
"text.html.markdown",
87+
"meta.paragraph.markdown"
88+
]
89+
}
90+
]
91+
},
92+
{
93+
"line": "## This is *great* stuff",
94+
"tokens": [
95+
{
96+
"value": "##",
97+
"scopes": [
98+
"text.html.markdown",
99+
"markup.heading.${1/(#)(#)?(#)?(#)?(#)?(#)?/${6:?6:${5:?5:${4:?4:${3:?3:${2:?2:1}}}}}/}.markdown",
100+
"punctuation.definition.heading.markdown"
101+
]
102+
},
103+
{
104+
"value": " ",
105+
"scopes": [
106+
"text.html.markdown",
107+
"markup.heading.${1/(#)(#)?(#)?(#)?(#)?(#)?/${6:?6:${5:?5:${4:?4:${3:?3:${2:?2:1}}}}}/}.markdown"
108+
]
109+
},
110+
{
111+
"value": "This is ",
112+
"scopes": [
113+
"text.html.markdown",
114+
"markup.heading.${1/(#)(#)?(#)?(#)?(#)?(#)?/${6:?6:${5:?5:${4:?4:${3:?3:${2:?2:1}}}}}/}.markdown",
115+
"entity.name.section.markdown"
116+
]
117+
},
118+
{
119+
"value": "*",
120+
"scopes": [
121+
"text.html.markdown",
122+
"markup.heading.${1/(#)(#)?(#)?(#)?(#)?(#)?/${6:?6:${5:?5:${4:?4:${3:?3:${2:?2:1}}}}}/}.markdown",
123+
"entity.name.section.markdown",
124+
"markup.italic.markdown",
125+
"punctuation.definition.italic.markdown"
126+
]
127+
},
128+
{
129+
"value": "great",
130+
"scopes": [
131+
"text.html.markdown",
132+
"markup.heading.${1/(#)(#)?(#)?(#)?(#)?(#)?/${6:?6:${5:?5:${4:?4:${3:?3:${2:?2:1}}}}}/}.markdown",
133+
"entity.name.section.markdown",
134+
"markup.italic.markdown"
135+
]
136+
},
137+
{
138+
"value": "*",
139+
"scopes": [
140+
"text.html.markdown",
141+
"markup.heading.${1/(#)(#)?(#)?(#)?(#)?(#)?/${6:?6:${5:?5:${4:?4:${3:?3:${2:?2:1}}}}}/}.markdown",
142+
"entity.name.section.markdown",
143+
"markup.italic.markdown",
144+
"punctuation.definition.italic.markdown"
145+
]
146+
},
147+
{
148+
"value": " stuff",
149+
"scopes": [
150+
"text.html.markdown",
151+
"markup.heading.${1/(#)(#)?(#)?(#)?(#)?(#)?/${6:?6:${5:?5:${4:?4:${3:?3:${2:?2:1}}}}}/}.markdown",
152+
"entity.name.section.markdown"
153+
]
154+
}
155+
]
156+
}
157+
]
158+
},
159+
{
160+
"grammars": [
161+
"fixtures/aspvbnet.plist"
162+
],
163+
"grammarPath": "fixtures/aspvbnet.plist",
164+
"desc": "asp",
165+
"lines": [
166+
{
167+
"line": "Dim tmpStr As String",
168+
"tokens": [
169+
{
170+
"value": "Dim",
171+
"scopes": [
172+
"source.asp.vb.net",
173+
"variable.other.dim.asp",
174+
"storage.type.asp"
175+
]
176+
},
177+
{
178+
"value": " ",
179+
"scopes": [
180+
"source.asp.vb.net",
181+
"variable.other.dim.asp"
182+
]
183+
},
184+
{
185+
"value": "tmpStr",
186+
"scopes": [
187+
"source.asp.vb.net",
188+
"variable.other.dim.asp",
189+
"variable.other.bfeac.asp"
190+
]
191+
},
192+
{
193+
"value": " ",
194+
"scopes": [
195+
"source.asp.vb.net",
196+
"variable.other.dim.asp"
197+
]
198+
},
199+
{
200+
"value": "As",
201+
"scopes": [
202+
"source.asp.vb.net",
203+
"keyword.operator.asp"
204+
]
205+
},
206+
{
207+
"value": " ",
208+
"scopes": [
209+
"source.asp.vb.net"
210+
]
211+
},
212+
{
213+
"value": "String",
214+
"scopes": [
215+
"source.asp.vb.net",
216+
"support.type.vb.asp"
217+
]
218+
}
219+
]
220+
}
221+
]
222+
}
223+
]

0 commit comments

Comments
 (0)