Skip to content

Commit 489c3ad

Browse files
committed
VS Theme generation for TypeScript
1 parent c6111da commit 489c3ad

File tree

3 files changed

+229
-178
lines changed

3 files changed

+229
-178
lines changed

TypeScript.YAML-tmTheme

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# VS theme settings for TypeScript
2+
3+
---
4+
name: TypeScript
5+
uuid: ef98eb90-bf9b-11e4-bb52-0800200c9a66
6+
7+
settings:
8+
- scope: storage.modifier, storage.type, keyword.control, keyword.other.ts, keyword.generator.asterisk, punctuation.definition.template-expression
9+
settings: { vsclassificationtype: keyword }
10+
- scope: keyword.operator.new.ts, keyword.operator.delete.ts, keyword.operator.in.ts, keyword.operator.of.ts, keyword.operator.instanceof.ts, keyword.operator.typeof.ts, keyword.operator.void.ts, keyword.control.as.ts, keyword.operator.is.ts
11+
settings: { vsclassificationtype: keyword }
12+
- scope: support.type, constant.language, variable.language
13+
settings: { vsclassificationtype: keyword }
14+
15+
- scope: string, punctuation.definition.string, constant.character
16+
settings: { vsclassificationtype: string }
17+
- scope: keyword.control.anchor.regexp, keyword.other.back-reference.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.operator.negation.regexp, punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp, punctuation.definition.group.capture.regexp, punctuation.definition.character-class.regexp, constant.other.character-class.range.regexp
18+
settings: { vsclassificationtype: string }
19+
20+
- scope: constant.numeric, meta.delimiter.decimal.period.ts, constant.language.nan.ts, constant.language.infinity.ts
21+
settings: { vsclassificationtype: number }
22+
23+
- scope: keyword.operator, storage.type.function.arrow.ts
24+
settings: { vsclassificationtype: operator }
25+
26+
- scope: meta.brace.angle.ts, meta.brace.round.ts, meta.brace.square.ts, punctuation, constant.language.import-export-all.ts, meta.delimiter.object.comma.ts
27+
settings: { vsclassificationtype: punctuation }
28+
29+
- scope: comment, comment.block.ts, comment.line.double-slash.ts, punctuation.definition.comment.ts
30+
settings: { vsclassificationtype: comment }
31+
- scope: comment.block.documentation.ts, other.meta.jsdoc, other.description.jsdoc
32+
settings: { vsclassificationtype: comment }
33+
- scope: entity.name.type.instance.jsdoc, variable.other.jsdoc
34+
settings: { vsclassificationtype: identifier }
35+
- scope: storage.type.class.jsdoc
36+
settings: { vsclassificationtype: xml doc comment - name }
37+
38+
- scope: entity.name.class.ts
39+
settings: { vsclassificationtype: class name }
40+
41+
- scope: entity.name.type.module.ts
42+
settings: { vsclassificationtype: module name }
43+
44+
- scope: entity.name.type.enum.ts
45+
settings: { vsclassificationtype: enum name }
46+
47+
- scope: entity.name.function, entity.name.type, meta.template.expression.ts, variable, entity.other.inherited-class.ts
48+
settings: { vsclassificationtype: identifier }
49+
50+
- scope: constant.language.undefined.ts
51+
settings: { vsclassificationtype: identifier }
52+
53+
...

TypeScript.tmTheme

Lines changed: 166 additions & 176 deletions
Original file line numberDiff line numberDiff line change
@@ -1,176 +1,166 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3-
<plist version="1.0">
4-
<dict>
5-
<key>name</key>
6-
<string>TypeScript</string>
7-
<key>settings</key>
8-
<array>
9-
<dict>
10-
<key>scope</key>
11-
<string>storage.modifier, storage.type, keyword.control, keyword.other.ts, keyword.generator.asterisk, punctuation.definition.template-expression</string>
12-
<key>settings</key>
13-
<dict>
14-
<key>vsclassificationtype</key>
15-
<string>keyword</string>
16-
</dict>
17-
</dict>
18-
<dict>
19-
<key>scope</key>
20-
<string>keyword.operator.new.ts, keyword.operator.delete.ts, keyword.operator.in.ts, keyword.operator.of.ts, keyword.operator.instanceof.ts, keyword.operator.typeof.ts, keyword.operator.void.ts, keyword.control.as.ts, keyword.operator.is.ts</string>
21-
<key>settings</key>
22-
<dict>
23-
<key>vsclassificationtype</key>
24-
<string>keyword</string>
25-
</dict>
26-
</dict>
27-
<dict>
28-
<key>scope</key>
29-
<string>support.type, constant.language, variable.language</string>
30-
<key>settings</key>
31-
<dict>
32-
<key>vsclassificationtype</key>
33-
<string>keyword</string>
34-
</dict>
35-
</dict>
36-
37-
<dict>
38-
<key>scope</key>
39-
<string>string, punctuation.definition.string, constant.character</string>
40-
<key>settings</key>
41-
<dict>
42-
<key>vsclassificationtype</key>
43-
<string>string</string>
44-
</dict>
45-
</dict>
46-
<dict>
47-
<key>scope</key>
48-
<string>keyword.control.anchor.regexp, keyword.other.back-reference.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.operator.negation.regexp, punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp, punctuation.definition.group.capture.regexp, punctuation.definition.character-class.regexp, constant.other.character-class.range.regexp</string>
49-
<key>settings</key>
50-
<dict>
51-
<key>vsclassificationtype</key>
52-
<string>string</string>
53-
</dict>
54-
</dict>
55-
56-
<dict>
57-
<key>scope</key>
58-
<string>constant.numeric, meta.delimiter.decimal.period.ts, constant.language.nan.ts, constant.language.infinity.ts</string>
59-
<key>settings</key>
60-
<dict>
61-
<key>vsclassificationtype</key>
62-
<string>number</string>
63-
</dict>
64-
</dict>
65-
66-
<dict>
67-
<key>scope</key>
68-
<string>keyword.operator, storage.type.function.arrow.ts</string>
69-
<key>settings</key>
70-
<dict>
71-
<key>vsclassificationtype</key>
72-
<string>operator</string>
73-
</dict>
74-
</dict>
75-
76-
<dict>
77-
<key>scope</key>
78-
<string>meta.brace.angle.ts, meta.brace.round.ts, meta.brace.square.ts, punctuation, constant.language.import-export-all.ts, meta.delimiter.object.comma.ts</string>
79-
<key>settings</key>
80-
<dict>
81-
<key>vsclassificationtype</key>
82-
<string>punctuation</string>
83-
</dict>
84-
</dict>
85-
86-
<dict>
87-
<key>scope</key>
88-
<string>comment, comment.block.ts, comment.line.double-slash.ts, punctuation.definition.comment.ts</string>
89-
<key>settings</key>
90-
<dict>
91-
<key>vsclassificationtype</key>
92-
<string>comment</string>
93-
</dict>
94-
</dict>
95-
<dict>
96-
<key>scope</key>
97-
<string>comment.block.documentation.ts, other.meta.jsdoc, other.description.jsdoc</string>
98-
<key>settings</key>
99-
<dict>
100-
<key>vsclassificationtype</key>
101-
<string>comment</string>
102-
</dict>
103-
</dict>
104-
<dict>
105-
<key>scope</key>
106-
<string>entity.name.type.instance.jsdoc, variable.other.jsdoc</string>
107-
<key>settings</key>
108-
<dict>
109-
<key>vsclassificationtype</key>
110-
<string>identifier</string>
111-
</dict>
112-
</dict>
113-
<dict>
114-
<key>scope</key>
115-
<string>storage.type.class.jsdoc</string>
116-
<key>settings</key>
117-
<dict>
118-
<key>vsclassificationtype</key>
119-
<string>xml doc comment - name</string>
120-
</dict>
121-
</dict>
122-
123-
<dict>
124-
<key>scope</key>
125-
<string>entity.name.class.ts</string>
126-
<key>settings</key>
127-
<dict>
128-
<key>vsclassificationtype</key>
129-
<string>class name</string>
130-
</dict>
131-
</dict>
132-
133-
<dict>
134-
<key>scope</key>
135-
<string>entity.name.type.module.ts</string>
136-
<key>settings</key>
137-
<dict>
138-
<key>vsclassificationtype</key>
139-
<string>module name</string>
140-
</dict>
141-
</dict>
142-
143-
<dict>
144-
<key>scope</key>
145-
<string>entity.name.type.enum.ts</string>
146-
<key>settings</key>
147-
<dict>
148-
<key>vsclassificationtype</key>
149-
<string>enum name</string>
150-
</dict>
151-
</dict>
152-
153-
<dict>
154-
<key>scope</key>
155-
<string>entity.name.function, entity.name.type, meta.template.expression.ts, variable, entity.other.inherited-class.ts</string>
156-
<key>settings</key>
157-
<dict>
158-
<key>vsclassificationtype</key>
159-
<string>identifier</string>
160-
</dict>
161-
</dict>
162-
<dict>
163-
<key>scope</key>
164-
<string>constant.language.undefined.ts</string>
165-
<key>settings</key>
166-
<dict>
167-
<key>vsclassificationtype</key>
168-
<string>identifier</string>
169-
</dict>
170-
</dict>
171-
172-
</array>
173-
<key>uuid</key>
174-
<string>ef98eb90-bf9b-11e4-bb52-0800200c9a66</string>
175-
</dict>
176-
</plist>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>name</key>
6+
<string>TypeScript</string>
7+
<key>uuid</key>
8+
<string>ef98eb90-bf9b-11e4-bb52-0800200c9a66</string>
9+
<key>settings</key>
10+
<array>
11+
<dict>
12+
<key>scope</key>
13+
<string>storage.modifier, storage.type, keyword.control, keyword.other.ts, keyword.generator.asterisk, punctuation.definition.template-expression</string>
14+
<key>settings</key>
15+
<dict>
16+
<key>vsclassificationtype</key>
17+
<string>keyword</string>
18+
</dict>
19+
</dict>
20+
<dict>
21+
<key>scope</key>
22+
<string>keyword.operator.new.ts, keyword.operator.delete.ts, keyword.operator.in.ts, keyword.operator.of.ts, keyword.operator.instanceof.ts, keyword.operator.typeof.ts, keyword.operator.void.ts, keyword.control.as.ts, keyword.operator.is.ts</string>
23+
<key>settings</key>
24+
<dict>
25+
<key>vsclassificationtype</key>
26+
<string>keyword</string>
27+
</dict>
28+
</dict>
29+
<dict>
30+
<key>scope</key>
31+
<string>support.type, constant.language, variable.language</string>
32+
<key>settings</key>
33+
<dict>
34+
<key>vsclassificationtype</key>
35+
<string>keyword</string>
36+
</dict>
37+
</dict>
38+
<dict>
39+
<key>scope</key>
40+
<string>string, punctuation.definition.string, constant.character</string>
41+
<key>settings</key>
42+
<dict>
43+
<key>vsclassificationtype</key>
44+
<string>string</string>
45+
</dict>
46+
</dict>
47+
<dict>
48+
<key>scope</key>
49+
<string>keyword.control.anchor.regexp, keyword.other.back-reference.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.operator.negation.regexp, punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp, punctuation.definition.group.capture.regexp, punctuation.definition.character-class.regexp, constant.other.character-class.range.regexp</string>
50+
<key>settings</key>
51+
<dict>
52+
<key>vsclassificationtype</key>
53+
<string>string</string>
54+
</dict>
55+
</dict>
56+
<dict>
57+
<key>scope</key>
58+
<string>constant.numeric, meta.delimiter.decimal.period.ts, constant.language.nan.ts, constant.language.infinity.ts</string>
59+
<key>settings</key>
60+
<dict>
61+
<key>vsclassificationtype</key>
62+
<string>number</string>
63+
</dict>
64+
</dict>
65+
<dict>
66+
<key>scope</key>
67+
<string>keyword.operator, storage.type.function.arrow.ts</string>
68+
<key>settings</key>
69+
<dict>
70+
<key>vsclassificationtype</key>
71+
<string>operator</string>
72+
</dict>
73+
</dict>
74+
<dict>
75+
<key>scope</key>
76+
<string>meta.brace.angle.ts, meta.brace.round.ts, meta.brace.square.ts, punctuation, constant.language.import-export-all.ts, meta.delimiter.object.comma.ts</string>
77+
<key>settings</key>
78+
<dict>
79+
<key>vsclassificationtype</key>
80+
<string>punctuation</string>
81+
</dict>
82+
</dict>
83+
<dict>
84+
<key>scope</key>
85+
<string>comment, comment.block.ts, comment.line.double-slash.ts, punctuation.definition.comment.ts</string>
86+
<key>settings</key>
87+
<dict>
88+
<key>vsclassificationtype</key>
89+
<string>comment</string>
90+
</dict>
91+
</dict>
92+
<dict>
93+
<key>scope</key>
94+
<string>comment.block.documentation.ts, other.meta.jsdoc, other.description.jsdoc</string>
95+
<key>settings</key>
96+
<dict>
97+
<key>vsclassificationtype</key>
98+
<string>comment</string>
99+
</dict>
100+
</dict>
101+
<dict>
102+
<key>scope</key>
103+
<string>entity.name.type.instance.jsdoc, variable.other.jsdoc</string>
104+
<key>settings</key>
105+
<dict>
106+
<key>vsclassificationtype</key>
107+
<string>identifier</string>
108+
</dict>
109+
</dict>
110+
<dict>
111+
<key>scope</key>
112+
<string>storage.type.class.jsdoc</string>
113+
<key>settings</key>
114+
<dict>
115+
<key>vsclassificationtype</key>
116+
<string>xml doc comment - name</string>
117+
</dict>
118+
</dict>
119+
<dict>
120+
<key>scope</key>
121+
<string>entity.name.class.ts</string>
122+
<key>settings</key>
123+
<dict>
124+
<key>vsclassificationtype</key>
125+
<string>class name</string>
126+
</dict>
127+
</dict>
128+
<dict>
129+
<key>scope</key>
130+
<string>entity.name.type.module.ts</string>
131+
<key>settings</key>
132+
<dict>
133+
<key>vsclassificationtype</key>
134+
<string>module name</string>
135+
</dict>
136+
</dict>
137+
<dict>
138+
<key>scope</key>
139+
<string>entity.name.type.enum.ts</string>
140+
<key>settings</key>
141+
<dict>
142+
<key>vsclassificationtype</key>
143+
<string>enum name</string>
144+
</dict>
145+
</dict>
146+
<dict>
147+
<key>scope</key>
148+
<string>entity.name.function, entity.name.type, meta.template.expression.ts, variable, entity.other.inherited-class.ts</string>
149+
<key>settings</key>
150+
<dict>
151+
<key>vsclassificationtype</key>
152+
<string>identifier</string>
153+
</dict>
154+
</dict>
155+
<dict>
156+
<key>scope</key>
157+
<string>constant.language.undefined.ts</string>
158+
<key>settings</key>
159+
<dict>
160+
<key>vsclassificationtype</key>
161+
<string>identifier</string>
162+
</dict>
163+
</dict>
164+
</array>
165+
</dict>
166+
</plist>

0 commit comments

Comments
 (0)