aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/paths.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-13 16:23:14 +0100
committerAleksey Kladov <[email protected]>2018-08-13 16:24:17 +0100
commit9149fd2c0ca3d23719082852a2cddd8ba5804ce6 (patch)
treef15d90dc80b6fd4d8e1bb966a171cb06a64cf9c0 /crates/libsyntax2/src/grammar/paths.rs
parentd1eceefeb8b683da3f64b89446f04f01803962e1 (diff)
Fix some parser bugs
Diffstat (limited to 'crates/libsyntax2/src/grammar/paths.rs')
-rw-r--r--crates/libsyntax2/src/grammar/paths.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar/paths.rs b/crates/libsyntax2/src/grammar/paths.rs
index c277e2a6b..aa5ecf4b8 100644
--- a/crates/libsyntax2/src/grammar/paths.rs
+++ b/crates/libsyntax2/src/grammar/paths.rs
@@ -62,7 +62,7 @@ fn path_segment(p: &mut Parser, mode: Mode, first: bool) {
62 } 62 }
63 SELF_KW | SUPER_KW => p.bump(), 63 SELF_KW | SUPER_KW => p.bump(),
64 _ => { 64 _ => {
65 p.error("expected identifier"); 65 p.err_and_bump("expected identifier");
66 } 66 }
67 }; 67 };
68 segment.complete(p, PATH_SEGMENT); 68 segment.complete(p, PATH_SEGMENT);