diff options
| author | Martin Haug <mhaug@live.de> | 2021-11-01 10:57:45 +0100 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2021-11-05 13:44:50 +0100 |
| commit | 7d34a548ccd14debe0668e23454e1ced70e485ec (patch) | |
| tree | fe99070ed803a976dfc3f52c9ed8468cc98234d4 /src/parse | |
| parent | 2e7d359e59a45849f53eea6e022ca83295f5a6e7 (diff) | |
Reorganize syntax module
Diffstat (limited to 'src/parse')
| -rw-r--r-- | src/parse/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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()), ); } |
