AzureMarker / intellij-lalrpop

Jetbrains plugin for the LALRPOP parser-generator
MIT License
16 stars 2 forks source link

After updating to 0.2.5, explicit newlines in strings are no longer accepted as valid #47

Closed xxx closed 3 years ago

xxx commented 3 years ago

Hi,

I just updated my plugin, and am now seeing an error for the following construct:

unreachable!("This only way for this to be reached is if a new op was added in the parent `match`, \
              without updating the TryFrom implementation, which shouldn't compile.")

with an (escaped) embedded newline. This is valid, and the grammar works fine - it's just the plugin now marks everything around and below it as an error.

If I remove the embedded newline and put the message onto a single line, the syntax is seen as valid.

AzureMarker commented 3 years ago

I fixed the issue and submitted v0.2.6 to the plugin marketplace. Thanks for opening the issue!