1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Identify functions for symbol lookup and correct lookbehind assertion

This commit is contained in:
Chris Hoffman 2010-03-08 02:39:38 -06:00
parent dde5db621d
commit c807da7664

View file

@ -259,6 +259,20 @@
<key>name</key>
<string>keyword.control.coffee</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.variable.coffee</string>
</dict>
</dict>
<key>match</key>
<string>(?&lt;=\s|^)([a-zA-Z\$_](\w|\$|:|\.)*\s*(?=\:(?!(\s*\(.*\))?\s*((=|-)&gt;))))</string>
<key>name</key>
<string>variable.assignment.coffee</string>
</dict>
<dict>
<key>captures</key>
<dict>
@ -269,9 +283,15 @@
</dict>
</dict>
<key>match</key>
<string>(?&lt;!=\s)([a-zA-Z\$_](\w|\$|:|\.)*\s*(?=\:))</string>
<string>(?&lt;=\s|^)([a-zA-Z\$_](\w|\$|:|\.)*\s*(?=\:(\s*\(.*\))?\s*((=|-)&gt;)))</string>
<key>name</key>
<string>variable.assignment.coffee</string>
<string>meta.function.coffee</string>
</dict>
<dict>
<key>match</key>
<string>(=|-)&gt;</string>
<key>name</key>
<string>storage.type.function.coffee</string>
</dict>
<dict>
<key>match</key>
@ -322,9 +342,9 @@
</dict>
</dict>
<key>match</key>
<string>(class)\s+([a-zA-Z\$_]\w+)(\s+(extends)\s+[a-zA-Z\$_]\w*)?</string>
<string>^\s*(class)\s+([a-zA-Z\$_]\w+)(\s+(extends)\s+[a-zA-Z\$_]\w*)?</string>
<key>name</key>
<string>meta.class.ruby</string>
<string>meta.class.coffee</string>
</dict>
<dict>
<key>match</key>
@ -332,12 +352,6 @@
<key>name</key>
<string>keyword.other.coffee</string>
</dict>
<dict>
<key>match</key>
<string>(=|-)&gt;</string>
<key>name</key>
<string>storage.type.function.coffee</string>
</dict>
<dict>
<key>match</key>
<string>!|%|&amp;|\*|\/|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|&lt;=|&gt;=|&lt;&lt;=|&gt;&gt;=|&gt;&gt;&gt;=|&lt;&gt;|&lt;|&gt;|!|&amp;&amp;|\?|\|\||\:|\*=|(?&lt;!\()/=|%=|\+=|\-=|&amp;=|\^=|\b(instanceof|new|delete|typeof|and|or|is|isnt|not)\b</string>