Open murrayju opened 7 years ago
You could try with a multiline block instead
@thing = """
#{a} >
#{b}
"""
Not a solution to the parsing issue, but might let you move forward and is probably safer generally to use multiline blocks because it's more explicit and readable as opposed to the single quote method, which could easily be read as a mistake.
Those aren't equivalent though. The block form will include newline characters, while the other form joins lines with a single space character. The workaround is to put it on a single line, or concatenate multiple strings across lines.
This isn't blocking me, just annoying when valid coffee code fails to process through codo and I have to modify it.
This would also be way less annoying if codo would output the offending line number. These parse errors can be really hard to track down.
Of course, my bad.
Coffeescript allows multiline strings. The codo parser throws an error if the source contains a multiline string with interpolation.
Gives the error:
The same code passes through the CoffeeScript compiler (and coffeelint) without error.