diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-02-10 11:23:41 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-02-10 11:23:41 +0000 |
commit | b814d931514cdc250f9156dabd874edf685569d0 (patch) | |
tree | 6de85e5e662bc0c6eca78715496a02867da1eff9 /src/parser/grammar/paths.rs | |
parent | c3b009b6d24225ad2add62fce8206918fceba3eb (diff) | |
parent | 199b3a1604095beee9eaeec541c8f158e85493ea (diff) |
Merge #46
46: Names r=matklad a=matklad
bors r+
Diffstat (limited to 'src/parser/grammar/paths.rs')
-rw-r--r-- | src/parser/grammar/paths.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser/grammar/paths.rs b/src/parser/grammar/paths.rs index a7fc90774..6ed315c3d 100644 --- a/src/parser/grammar/paths.rs +++ b/src/parser/grammar/paths.rs | |||
@@ -42,7 +42,8 @@ fn path_segment(p: &mut Parser, first: bool) { | |||
42 | p.eat(COLONCOLON); | 42 | p.eat(COLONCOLON); |
43 | } | 43 | } |
44 | match p.current() { | 44 | match p.current() { |
45 | IDENT | SELF_KW | SUPER_KW => p.bump(), | 45 | IDENT => name_ref(p), |
46 | SELF_KW | SUPER_KW => p.bump(), | ||
46 | _ => { | 47 | _ => { |
47 | p.error("expected identifier"); | 48 | p.error("expected identifier"); |
48 | } | 49 | } |