Skip to content

Commit e4ef85d

Browse files
author
Brandon Benvie
committed
fix constructor name matching
1 parent 043c9c3 commit e4ef85d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JavaScriptNext.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@
941941
</dict>
942942
</dict>
943943
<key>match</key>
944-
<string>(new)\s+(\w+(?:\.\w*)?)</string>
944+
<string>(new)\s+([a-zA-Z_?.$][\w?.$]*)</string>
945945
<key>name</key>
946946
<string>meta.instance.constructor</string>
947947
</dict>

0 commit comments

Comments
 (0)