diff options
Diffstat (limited to 'src/parser/event_parser/grammar/mod.rs')
-rw-r--r-- | src/parser/event_parser/grammar/mod.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/parser/event_parser/grammar/mod.rs b/src/parser/event_parser/grammar/mod.rs index 931193b5f..92125acd1 100644 --- a/src/parser/event_parser/grammar/mod.rs +++ b/src/parser/event_parser/grammar/mod.rs | |||
@@ -21,11 +21,15 @@ fn visibility(p: &mut Parser) { | |||
21 | p.bump(); | 21 | p.bump(); |
22 | if p.at(L_PAREN) { | 22 | if p.at(L_PAREN) { |
23 | match p.nth(1) { | 23 | match p.nth(1) { |
24 | CRATE_KW | SELF_KW | SUPER_KW | IN_KW => { | 24 | CRATE_KW | SELF_KW | SUPER_KW => { |
25 | p.bump(); | 25 | p.bump(); |
26 | if p.bump() == IN_KW { | 26 | p.bump(); |
27 | paths::use_path(p); | 27 | p.expect(R_PAREN); |
28 | } | 28 | } |
29 | IN_KW => { | ||
30 | p.bump(); | ||
31 | p.bump(); | ||
32 | paths::use_path(p); | ||
29 | p.expect(R_PAREN); | 33 | p.expect(R_PAREN); |
30 | } | 34 | } |
31 | _ => (), | 35 | _ => (), |