vvakame / jsx-plugin-for-eclipse

JSX Plugin for Eclipse
7 stars 2 forks source link

fix: regexp and mulExpr parse error #1

Closed mzp closed 12 years ago

mzp commented 12 years ago

Becase ANTLR's lexer uses longest match string as token, REGEXP_LITERAL always eat '/'.

By changing regexp_literal from token to rule, we decide a usage of '/' at parsing phase, not lexing phase.