Compiler icon indicating copy to clipboard operation
Compiler copied to clipboard

Bug when saving parser class

Open flip111 opened this issue 7 years ago • 0 comments

I have the token \ i need to escape it once because pp uses regex so it becomes:

%token token62 \\

when this is written as php class the backslash is only escaped once, like so:

'token62' => '\\\',

it doesn't matter if there are more surrounding characters (i have a few other rules which suffer from the same bug)

flip111 avatar Oct 21 '18 21:10 flip111