Skip to content

Instantly share code, notes, and snippets.

@austinfromboston
Created July 18, 2010 21:55
Show Gist options
  • Save austinfromboston/480741 to your computer and use it in GitHub Desktop.
Save austinfromboston/480741 to your computer and use it in GitHub Desktop.
i ran into a weird issue with block comments and indentation. Following code blows up on compile:
publish: ->
"foo"
###
Any random text
###
Server: {}
-------------------------
compiler output:
Error: In coffee_app.coffee, Parse error on line 5: Unexpected 'ASSIGN'
at Object.parseError (/usr/local/Cellar/coffee-script/0.5.5/lib/coffee-script/lib/parser.js:505:11)
at Object.parse (/usr/local/Cellar/coffee-script/0.5.5/lib/coffee-script/lib/parser.js:577:32)
at Object.compile (/usr/local/Cellar/coffee-script/0.5.5/lib/coffee-script/lib/coffee-script.js:23:22)
at /usr/local/Cellar/coffee-script/0.5.5/lib/coffee-script/lib/command.js:103:27
at /usr/local/Cellar/coffee-script/0.5.5/lib/coffee-script/lib/command.js:76:28
at fs:83:13
at node.js:255:9
In coffee_app.coffee, Parse error on line 5: Unexpected 'ASSIGN'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment