-
I am making a parser for a type of doc-comments in the Solidity language. At the core of it, I'm parsing a line of text which ends with a newline. See the following examples:
So the line can start with nothing, whitespace, whitespace followed by one or more stars. Followed by optional whitespace and then either a keyword followed by some text ( I made two functions, one for the keyword case, and one for the non-keyword case (which is the same as using See my parser here: https://www.rustexplorer.com/b/iqrsyv Can you spot a mistake in what I wrote? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think the problem might come from the fact that I don't consume the line ending or |
Beta Was this translation helpful? Give feedback.
Ok it seems that if I don't use that parser in isolation but combine it with
separated
or simply append aline_ending
combinator after, everything works as expected!