()
| 249 | } |
| 250 | |
| 251 | fn line_wrap<'a>() -> impl Parser<'a, ParserInput<'a>, TokenKind, ParserError<'a>> { |
| 252 | newline() |
| 253 | .ignore_then( |
| 254 | whitespace() |
| 255 | .repeated() |
| 256 | .ignore_then(comment()) |
| 257 | .then_ignore(newline()) |
| 258 | .repeated() |
| 259 | .collect(), |
| 260 | ) |
| 261 | .then_ignore(whitespace().repeated()) |
| 262 | .then_ignore(just('\\')) |
| 263 | .map(TokenKind::LineWrap) |
| 264 | } |
| 265 | |
| 266 | fn comment<'a>() -> impl Parser<'a, ParserInput<'a>, TokenKind, ParserError<'a>> { |
| 267 | // Extract the common comment text parser |