zaach / jison

Bison in JavaScript.
http://jison.org
4.34k stars 449 forks source link

Regex parser error with '.' #237

Open thelonious opened 10 years ago

thelonious commented 10 years ago

I'm getting reports that a parser I've written is returning the following error:

undefined:381
rules: [/^(?:(?:\s|[\r\n])+)/,/^(?://.*)/,/^(?:abstract\b)/,/^(?:enum\b)/,/^(?
                                     ^

This appears to be an issue in 0.4.15, but is fine in 0.4.13. I haven't tried 0.4.14 to see if the regression started there or in 0.4.15.

FWIW, it looks like this rule is what is causing the parse error:

[ "//.*", "/* skip comments */" ],
thelonious commented 9 years ago

This still appears to be an issue. Any update on this? FWIW, I verified that this issue first appeared in 0.4.14.

Thanks!