Unput leaves yytext one character short #135

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
3 participants

There is an off-by-one error in the unput method that leaves the yytext shorter. This should fix it.

Owner

zaach commented Jan 29, 2013

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.

Owner

zaach commented Apr 17, 2013

Fixed in latest jison-lex.

zaach closed this Apr 17, 2013

fgnass commented Jan 8, 2014

I just ran into the same issue. If I'm not mistaken jison-lex still contains the buggy line:
https://github.com/zaach/jison-lex/blob/master/regexp-lexer.js#L209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment