Skip to content

Commit ee54c80

Browse files
author
charlycontreras
committed
Adding support for the dollar sign ($) in a function name. This is a convention being used for example in the CFWheels Framework.
1 parent 08f939e commit ee54c80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cfscript.tmLanguage

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>fileTypes</key>
88
<array/>
99
<key>foldingStartMarker</key>
10-
<string>^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$</string>
10+
<string>^.*\bfunction\s*([\w\$]+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$</string>
1111
<key>foldingStopMarker</key>
1212
<string>^\s*\}</string>
1313
<key>name</key>
@@ -141,7 +141,7 @@
141141
(?:
142142
(init) # entity.name.function.contructor
143143
|
144-
(\w+) # entity.name.function
144+
([\w\$]+) # entity.name.function
145145
)\b
146146
</string>
147147
<key>beginCaptures</key>

0 commit comments

Comments
 (0)