pub fn line<P>(parser: P) -> RegionParser<Line, P>
Expand description
line(pattern)
matches a single line of text that
matches pattern, and the newline at the end of the line.
This is like ^pattern\n
in regular expressions,
except line(pattern)
will only ever match exactly
one line of text, even if pattern could match more newlines.
line(string(any_char+))
matches a line of text, strips off the newline
character, and returns the rest as a String
.
line("")
matches a blank line.