Skip to content

Commit 82e95ae

Browse files
committed
Allow comments in function arguments
Discussed in atom/language-javascript#113
1 parent 5fcedf2 commit 82e95ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Syntaxes/JavaScript.plist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@
799799
<key>comment</key>
800800
<string>Matches valid argument, function and variable names. To be thorough: https://github.com/mathiasbynens/mothereff.in/tree/master/js-variables</string>
801801
<key>end</key>
802-
<string>(?=[,)])</string>
802+
<string>(?=[,)/])</string>
803803
<key>patterns</key>
804804
<array>
805805
<dict>
@@ -810,6 +810,10 @@
810810
</dict>
811811
</array>
812812
</dict>
813+
<dict>
814+
<key>include</key>
815+
<string>#comments</string>
816+
</dict>
813817
</array>
814818
</dict>
815819
<key>interpolated_js</key>

0 commit comments

Comments
 (0)