Skip to content

Commit 3e0e15e

Browse files
authored
Merge pull request #257 from Microsoft/modifyExistingGrammar
Rewrite and fixes for lot of grammar issues
2 parents 1cf745c + e6b8e96 commit 3e0e15e

File tree

237 files changed

+42713
-3134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+42713
-3134
lines changed

TypeScript.YAML-tmLanguage

Lines changed: 951 additions & 292 deletions
Large diffs are not rendered by default.

TypeScript.tmLanguage

Lines changed: 2938 additions & 758 deletions
Large diffs are not rendered by default.

TypeScript.tmTheme

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
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>

0 commit comments

Comments
 (0)