Skip to content

Commit 5659735

Browse files
authored
Merge pull request #340 from Microsoft/classExprInNewExpr
Allow class expression as part of new expression target
2 parents 1c10d18 + 9a98954 commit 5659735

File tree

5 files changed

+399
-0
lines changed

5 files changed

+399
-0
lines changed

TypeScript.YAML-tmLanguage

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,7 @@ repository:
13261326
end: '(?<=\))|(?=[;),]|$|((?<!\.|\$)\bnew\b(?!\$)))'
13271327
patterns:
13281328
- include: '#paren-expression'
1329+
- include: '#class-or-interface-declaration'
13291330
- include: '#type'
13301331

13311332
object-member:

TypeScript.tmLanguage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3731,6 +3731,10 @@
37313731
<key>include</key>
37323732
<string>#paren-expression</string>
37333733
</dict>
3734+
<dict>
3735+
<key>include</key>
3736+
<string>#class-or-interface-declaration</string>
3737+
</dict>
37343738
<dict>
37353739
<key>include</key>
37363740
<string>#type</string>

TypeScriptReact.tmLanguage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3713,6 +3713,10 @@
37133713
<key>include</key>
37143714
<string>#paren-expression</string>
37153715
</dict>
3716+
<dict>
3717+
<key>include</key>
3718+
<string>#class-or-interface-declaration</string>
3719+
</dict>
37163720
<dict>
37173721
<key>include</key>
37183722
<string>#type</string>

0 commit comments

Comments
 (0)