diff options
author | Aleksey Kladov <[email protected]> | 2018-02-10 11:17:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-02-10 11:17:38 +0000 |
commit | e792ec3eca6214329d053715a6477cc4f7a05672 (patch) | |
tree | 983d71dd78990607924edce788a0326db1bfad20 /src/parser/grammar/paths.rs | |
parent | fa2131365e8ff2a6fa4fcb47aa04e6d51a32943e (diff) |
G: use name refs in paths
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 | } |