Skip to content

Commit

Permalink
Adding support for the dollar sign ($) in a function name. This is a …
Browse files Browse the repository at this point in the history
…convention being used for example in the CFWheels Framework.
  • Loading branch information
charlycontreras committed Jun 25, 2013
1 parent 08f939e commit ee54c80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cfscript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>fileTypes</key>
<array/>
<key>foldingStartMarker</key>
<string>^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$</string>
<string>^.*\bfunction\s*([\w\$]+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$</string>
<key>foldingStopMarker</key>
<string>^\s*\}</string>
<key>name</key>
Expand Down Expand Up @@ -141,7 +141,7 @@
(?:
(init) # entity.name.function.contructor
|
(\w+) # entity.name.function
([\w\$]+) # entity.name.function
)\b
</string>
<key>beginCaptures</key>
Expand Down

0 comments on commit ee54c80

Please sign in to comment.