(kw: &'static str)
| 79 | } |
| 80 | |
| 81 | fn keyword<'a, I>(kw: &'static str) -> impl Parser<'a, I, (), ParserError<'a>> + Clone |
| 82 | where |
| 83 | I: Input<'a, Token = lr::Token, Span = Span> + BorrowInput<'a>, |
| 84 | { |
| 85 | select_ref! { |
| 86 | lr::Token { kind: TokenKind::Keyword(k), .. } if k == kw => (), |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | /// Our approach to new lines is each item consumes new lines _before_ itself, |
| 91 | /// but not newlines after itself. This allows us to enforce new lines between |
no outgoing calls
no test coverage detected