From 7d34a548ccd14debe0668e23454e1ced70e485ec Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Mon, 1 Nov 2021 10:57:45 +0100 Subject: Reorganize syntax module --- src/parse/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parse/mod.rs') diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 8775e8a1..22288d01 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -520,7 +520,7 @@ fn dict(p: &mut Parser, items: usize) { p.child_count() - items, |x| { x.kind() == &NodeKind::Named - || x.kind().is_parenthesis() + || x.kind().is_paren() || x.kind() == &NodeKind::Comma || x.kind() == &NodeKind::Colon }, @@ -550,7 +550,7 @@ fn params(p: &mut Parser, count: usize, allow_parens: bool) { ), _ => false, } - || (allow_parens && x.kind().is_parenthesis()), + || (allow_parens && x.kind().is_paren()), |_| (ErrorPosition::Full, "expected identifier".into()), ); } -- cgit v1.2.3