got comments within object and array literals working out

This commit is contained in:
Jeremy Ashkenas
2009-12-22 11:50:43 -05:00
parent 65809d08f6
commit ec58d6fda2
6 changed files with 47 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ module CoffeeScript
# Token cleaning regexes.
JS_CLEANER = /(\A`|`\Z)/
MULTILINER = /\n/
COMMENT_CLEANER = /^\s*#/
COMMENT_CLEANER = /(^\s*#|\n\s*$)/
# Tokens that always constitute the start of an expression.
EXP_START = ['{', '(', '[']