satyr / coco

Unfancy CoffeeScript
http://satyr.github.com/coco/
MIT License
498 stars 48 forks source link

allows comments in implicit listar #226

Closed vendethiel closed 8 years ago

vendethiel commented 11 years ago

Such as

a =
 'a'
 'b'
 /*
 */
vendethiel commented 11 years ago

ah, that's one thing we can't do because we don't know where to insert them, right ? feel free to close this if so

satyr commented 11 years ago

Assuming you mean block comments, we don't even allow them in explicit arrays:

$ coco -bcs
[
  1
  2
  /**/
]

SyntaxError: unexpected `/**/` on line 4
vendethiel commented 11 years ago

Eh, that's true. Too bad.