Skip to content

Commit 9a98954

Browse files
committed
Allow class expression as part of new expression target
Fixes #339
1 parent ca507d5 commit 9a98954

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
@@ -1325,6 +1325,7 @@ repository:
13251325
end: '(?<=\))|(?=[;),]|$|((?<!\.|\$)\bnew\b(?!\$)))'
13261326
patterns:
13271327
- include: '#paren-expression'
1328+
- include: '#class-or-interface-declaration'
13281329
- include: '#type'
13291330

13301331
object-member:

TypeScript.tmLanguage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3727,6 +3727,10 @@
37273727
<key>include</key>
37283728
<string>#paren-expression</string>
37293729
</dict>
3730+
<dict>
3731+
<key>include</key>
3732+
<string>#class-or-interface-declaration</string>
3733+
</dict>
37303734
<dict>
37313735
<key>include</key>
37323736
<string>#type</string>

TypeScriptReact.tmLanguage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3709,6 +3709,10 @@
37093709
<key>include</key>
37103710
<string>#paren-expression</string>
37113711
</dict>
3712+
<dict>
3713+
<key>include</key>
3714+
<string>#class-or-interface-declaration</string>
3715+
</dict>
37123716
<dict>
37133717
<key>include</key>
37143718
<string>#type</string>

0 commit comments

Comments
 (0)