Merge pull request #2627 from int3/master

Parse compound assignment operator followed by a terminator. Closes #2532.
This commit is contained in:
Jeremy Ashkenas
2013-01-05 20:10:32 -08:00
4 changed files with 92 additions and 153 deletions

View File

@@ -365,3 +365,13 @@ test '#2213: invocations within destructured parameters', ->
throws -> CoffeeScript.compile '({a()})->'
throws -> CoffeeScript.compile '({a:b()})->'
throws -> CoffeeScript.compile '({a:b.c()})->'
test '#2532: compound assignment with terminator', ->
doesNotThrow -> CoffeeScript.compile """
a = "hello"
a +=
"
world
!
"
"""