aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/paths.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-02-10 11:23:41 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-02-10 11:23:41 +0000
commitb814d931514cdc250f9156dabd874edf685569d0 (patch)
tree6de85e5e662bc0c6eca78715496a02867da1eff9 /src/parser/grammar/paths.rs
parentc3b009b6d24225ad2add62fce8206918fceba3eb (diff)
parent199b3a1604095beee9eaeec541c8f158e85493ea (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.rs3
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 }