aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser/event_parser/grammar/paths.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/parser/event_parser/grammar/paths.rs b/src/parser/event_parser/grammar/paths.rs
index 96966b380..74b0e0ed4 100644
--- a/src/parser/event_parser/grammar/paths.rs
+++ b/src/parser/event_parser/grammar/paths.rs
@@ -7,9 +7,14 @@ pub(crate) fn use_path(p: &mut Parser) {
7 node(p, PATH, |p| { 7 node(p, PATH, |p| {
8 p.eat(COLONCOLON); 8 p.eat(COLONCOLON);
9 path_segment(p); 9 path_segment(p);
10 }) 10 });
11 many(p, |p| {
12 node_if(p, COLONCOLON, PATH, |p| {
13 path_segment(p);
14 })
15 });
11} 16}
12 17
13fn path_segment(p: &mut Parser) -> bool { 18fn path_segment(p: &mut Parser) -> bool {
14 node_if(p, IDENT, PATH_SEGMENT, |p| ()) 19 node_if(p, IDENT, PATH_SEGMENT, |_| ())
15} \ No newline at end of file 20} \ No newline at end of file