Since the rule name can be any alphanumeric string including _ a simple "\w+" won't suffice.\w already matches underscore.I should think something like [\w\_]+ would work:
Dave.
In reply to Re^2: Lexing: how to define tokens based on "context"
by dave_the_m
in thread Lexing: how to define tokens based on "context"
by three18ti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |