GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
There is an off-by-one error in the unput method that leaves the yytext shorter. This should fix it.
Add test case to verify bug
Fix off-by-one error
Awesome. Could you submit this PR to jison-lex instead? The lexer has been moved there, to be used as a dependency for the next version of jison. The lexer and test files should basically be the same.
Fixed in latest jison-lex.
I just ran into the same issue. If I'm not mistaken jison-lex still contains the buggy line: