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

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

@ -27,9 +27,9 @@ spaced_out_multiline_object: {
}
# Arrays:
stooges : [{moe: 45}, {curly: 43}, {larry: 46}]
stooges: [{moe: 45}, {curly: 43}, {larry: 46}]
exponents : [(x => x), (x => x * x), (x => x * x * x)]
exponents: [(x => x), (x => x * x), (x => x * x * x)]
empty: []

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>