rspivak / slimit

SlimIt - a JavaScript minifier/parser in Python
MIT License
551 stars 94 forks source link

Parser fails to parse a code block with a new line at the end of a file #3

Closed rspivak closed 13 years ago

rspivak commented 13 years ago

Parser fails to parse a code block that doesn't have a semicolon at the end of the block and the next token is a new line at the end of a file:

$ cat test.js 
function add(x, y) {
 return x + y;
}\n
rspivak commented 13 years ago

Fixed in https://github.com/rspivak/slimit/commit/59c55c4b94e1e073d03412d391ce930422c160e6