making all assignment-y operators use a colon -- now it's +: -: *: /:, and friends

This commit is contained in:
Jeremy Ashkenas
2009-12-24 22:25:29 -08:00
parent 6865f5be92
commit beae912a91
4 changed files with 14 additions and 8 deletions

View File

@@ -359,6 +359,11 @@ module CoffeeScript
'is' => '===',
"isnt" => "!==",
'not' => '!',
'+:' => '+=',
'-:' => '-=',
'*:' => '*=',
'/:' => '/=',
'%:' => '%='
}
CONDITIONALS = ['||:', '&&:']
PREFIX_OPERATORS = ['typeof', 'delete']