diff options
author | Aleksey Kladov <[email protected]> | 2018-01-28 11:58:01 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-28 11:58:51 +0000 |
commit | dee7046f7eefbaef1d8ab97517b14139fbf696ce (patch) | |
tree | 81136bfa035035ee838717f8296a79f044dc0d48 /src/parser/event_parser/grammar/paths.rs | |
parent | 4212d28727fca0de8c3f5d4504025c3028425386 (diff) |
Don't return SyntaxKind from bump
Diffstat (limited to 'src/parser/event_parser/grammar/paths.rs')
-rw-r--r-- | src/parser/event_parser/grammar/paths.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/parser/event_parser/grammar/paths.rs b/src/parser/event_parser/grammar/paths.rs index 6c8a89f6c..a254ab05e 100644 --- a/src/parser/event_parser/grammar/paths.rs +++ b/src/parser/event_parser/grammar/paths.rs | |||
@@ -30,12 +30,8 @@ fn path_segment(p: &mut Parser, first: bool) { | |||
30 | p.eat(COLONCOLON); | 30 | p.eat(COLONCOLON); |
31 | } | 31 | } |
32 | match p.current() { | 32 | match p.current() { |
33 | IDENT | SELF_KW | SUPER_KW => { | 33 | IDENT | SELF_KW | SUPER_KW => p.bump(), |
34 | p.bump(); | 34 | _ => p.error().message("expected identifier").emit(), |
35 | } | ||
36 | _ => { | ||
37 | p.error().message("expected identifier").emit(); | ||
38 | } | ||
39 | }; | 35 | }; |
40 | segment.complete(p, PATH_SEGMENT); | 36 | segment.complete(p, PATH_SEGMENT); |
41 | } | 37 | } |