String literal does not work with escape and single quotes

Feb 8 at 3:40 PM
Edited Feb 8 at 3:41 PM
Hi,

my grammar contains something like :

identifier eq string or number with optional and and the same condition . Data usually look like:

SomeName eq 'foo' and SomeNumber eq 123


All works fine until I use \ and ' in the string. So

SomeName eq 'fo'o'
SomeName eq 'fo\'o'
SomeName eq 'fo\o'
SomeName eq 'fo\\o'

all fail. I use string literal and tried also setting the escape options but no luck.

How can I have Irony parse the string corrrectly ?