MCPcopy Create free account
hub / github.com/PRQL/prql / keyword

Function keyword

prqlc/prqlc-parser/src/parser/mod.rs:81–88  ·  view source on GitHub ↗
(kw: &'static str)

Source from the content-addressed store, hash-verified

79}
80
81fn keyword<'a, I>(kw: &'static str) -> impl Parser<'a, I, (), ParserError<'a>> + Clone
82where
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

Callers 9

module_contentsFunction · 0.70
query_defFunction · 0.70
var_defFunction · 0.70
type_defFunction · 0.70
import_defFunction · 0.70
type_exprFunction · 0.70
exprFunction · 0.70
caseFunction · 0.70
lambda_funcFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected