Skip to content

Commit

Permalink
Allow function names to begin with @
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki authored and ttilley committed Apr 2, 2013
1 parent 5c12d60 commit d6ea46f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Syntaxes/CoffeeScript (Literate).tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@
</dict>
</dict>
<key>match</key>
<string>(\s*)(?=[a-zA-Z\$_])([a-zA-Z\$_](\w|\$|:|\.)*\s*(?=[:=](\s*\(.*\))?\s*((=|-)&gt;)))</string>
<string>(\s*)(?=@?[a-zA-Z\$_])(@?[a-zA-Z\$_](\w|\$|:|\.)*\s*(?=[:=](\s*\(.*\))?\s*((=|-)&gt;)))</string>
<key>name</key>
<string>meta.function.coffee</string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions Syntaxes/CoffeeScript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@
<key>match</key>
<string>(?x)
(\s*)
(?=[a-zA-Z\$_])
(?=@?[a-zA-Z\$_])
(
[a-zA-Z\$_](\w|\$|:|\.)*\s*
@?[a-zA-Z\$_](\w|\$|:|\.)*\s*
(?=[:=](\s*\(.*\))?\s*([=-]&gt;))
)
</string>
Expand Down

0 comments on commit d6ea46f

Please sign in to comment.