Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Bugs with option: re2c:flags:no-debug-info #201
and found that:
re2c always generate debug #line1 (with no-debug-info = 1 and with no-debug-info = 0):
Visual Studio 2017 generate warning
I think all '' symbols must be escaped like this:
Both issues confirmed, thanks for reporting.
I pushed the fix for backslash escapes: 4a614d6.
I might have a look at line info issue tomorrow, it's not that difficult. A long time ago re2c used to make one pass over the input and write output straight away, and in some places that one-pass approach still remains. In particular, the first line info is generated before re2c even reads the configuration.