aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/paths.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/grammar/paths.rs')
-rw-r--r--src/parser/grammar/paths.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parser/grammar/paths.rs b/src/parser/grammar/paths.rs
index 6ed315c3d..d3eb20ea1 100644
--- a/src/parser/grammar/paths.rs
+++ b/src/parser/grammar/paths.rs
@@ -1,7 +1,10 @@
1use super::*; 1use super::*;
2 2
3pub(super) fn is_path_start(p: &Parser) -> bool { 3pub(super) fn is_path_start(p: &Parser) -> bool {
4 AnyOf(&[IDENT, SELF_KW, SUPER_KW, COLONCOLON]).is_ahead(p) 4 match p.current() {
5 IDENT | SELF_KW | SUPER_KW | COLONCOLON => true,
6 _ => false,
7 }
5} 8}
6 9
7pub(super) fn use_path(p: &mut Parser) { 10pub(super) fn use_path(p: &mut Parser) {