Cursor.term() -> Cursor.ident()

parent f875b825
......@@ -271,9 +271,9 @@ impl Synom for ast::ImplProp {
/// ```
fn keyword<'a>(name: &'static str) -> impl Fn(Cursor<'a>) -> PResult<Ident> {
move |input: Cursor<'a>| {
if let Some((term, rest)) = input.term() {
if term.as_str() == name {
return Ok((term, rest));
if let Some((ident, rest)) = input.ident() {
if ident == name {
return Ok((ident, rest));
}
}
parse_error() // FIXME: use a meaningful error message when synom allows for it
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment