aboutsummaryrefslogtreecommitdiff
path: root/src/parser/event_parser/grammar/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/event_parser/grammar/mod.rs')
-rw-r--r--src/parser/event_parser/grammar/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/event_parser/grammar/mod.rs b/src/parser/event_parser/grammar/mod.rs
index 881bb3ef3..1097344c0 100644
--- a/src/parser/event_parser/grammar/mod.rs
+++ b/src/parser/event_parser/grammar/mod.rs
@@ -59,7 +59,7 @@ fn node<F: FnOnce(&mut Parser)>(p: &mut Parser, node_kind: SyntaxKind, rest: F)
59 p.finish(); 59 p.finish();
60} 60}
61 61
62fn many<F: FnMut(&mut Parser) -> bool>(p: &mut Parser, mut f: F) { 62fn repeat<F: FnMut(&mut Parser) -> bool>(p: &mut Parser, mut f: F) {
63 loop { 63 loop {
64 let pos = p.pos(); 64 let pos = p.pos();
65 if !f(p) { 65 if !f(p) {
@@ -72,7 +72,7 @@ fn many<F: FnMut(&mut Parser) -> bool>(p: &mut Parser, mut f: F) {
72} 72}
73 73
74fn comma_list<F: Fn(&mut Parser) -> bool>(p: &mut Parser, end: SyntaxKind, f: F) { 74fn comma_list<F: Fn(&mut Parser) -> bool>(p: &mut Parser, end: SyntaxKind, f: F) {
75 many(p, |p| { 75 repeat(p, |p| {
76 if p.current() == end { 76 if p.current() == end {
77 return false 77 return false
78 } 78 }