-
Describe the bug
and string literals inside double quotes or in the rust style raw strings; like
when I put a url inside the string literal, I get a parsing error. in fact, it need only be what the comment start is to make this error; so To Reproduce
and a test to see it in action:
Expected behavior Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
oh, just noticed the editor on the website; |
Beta Was this translation helpful? Give feedback.
-
I assume it's likely due to the greedy PEG nature in combination with that COMMENT rule; you can try https://github.com/pest-parser/awesome-pest/blob/main/debugger.md to see what's going on |
Beta Was this translation helpful? Give feedback.
-
OK, so leaving out the stuff that adds no value, this is what I get using the provided grammar
My rather limited analysis of this is that it recognises the double quote, starts parsing the string content, but still looks for |
Beta Was this translation helpful? Give feedback.
-
OK, I think I've got to the bottom of this. If i make the |
Beta Was this translation helpful? Give feedback.
OK, I think I've got to the bottom of this. If i make the
string_literal
rule atomic, it prevents the processing. You have got that in the documents, so I'll just slink away into my corner of the internet. Thanks for the pointer.