zaach / jison

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

Dashes treated as 'metacharacter' in built-in lexer generator #315

Open rmzg opened 8 years ago

rmzg commented 8 years ago

In short the lexer rule: \d-\d

Does not match "1-1"

But the rule: \d\\-\d Does match "1-1"

Is this intended and where is it documented? (p.s. why is the npm version over a year old)