Files
coffeescript/test
Simon Lydell 05b3707506 Fix #1316: Interpolate interpolations safely
Instead of compiling to `"" + + (+"-");`, `"#{+}-"'` now gives an appropriate
error message:

    [stdin]:1:5: error: unexpected end of interpolation
    "#{+}-"
        ^

This is done by _always_ (instead of just sometimes) wrapping the interpolations
in parentheses in the lexer. Unnecessary parentheses won't be output anyway.

I got tired of updating the tests in test/location.coffee (which I had enough of
in #3770), which relies on implementation details (the exact amount of tokens
generated for a given string of code) to do their testing, so I refactored them
to be less fragile.
2015-01-16 17:19:42 +01:00
..
2011-04-23 13:35:15 -04:00
2011-04-23 13:35:15 -04:00
2015-01-05 15:40:04 -05:00
2014-08-26 20:41:32 -05:00
2011-06-02 01:49:28 -04:00
2014-08-26 20:41:32 -05:00
2013-03-21 09:04:23 +08:00