adding consistent highlighting to variable assignment, whether functions or values

This commit is contained in:
Jeremy Ashkenas
2010-01-01 17:11:48 -05:00
parent 75d9e23df4
commit 34add7d7bf
2 changed files with 21 additions and 2 deletions

View File

@@ -208,6 +208,25 @@
<key>name</key>
<string>keyword.control.coffee</string>
</dict>
<dict>
<key>match</key>
<string>\b([a-zA-Z$_]\w*)(\:)\s</string>
<key>name</key>
<string>variable.assignment.coffee</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.name.function.coffee</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.coffee</string>
</dict>
</dict>
</dict>
<dict>
<key>match</key>
<string>\b(true|on|yes)\b</string>