diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-02-11 10:19:32 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-02-11 10:19:32 +0000 |
commit | 7a0ada860b57acd44b1d53e944ae621e438652da (patch) | |
tree | 206edfb15c0eec57c1872a2acc435d7f38df1c88 /src/parser/grammar/paths.rs | |
parent | 7176029803fe2e00f29ab7d20a384e3ee6f53ba3 (diff) | |
parent | 65ebfd9a34554b8139d5c4673bc3b5daa5ab0df5 (diff) |
Merge #49
49: Simplify r=matklad a=matklad
bors r+
Diffstat (limited to 'src/parser/grammar/paths.rs')
-rw-r--r-- | src/parser/grammar/paths.rs | 5 |
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 @@ | |||
1 | use super::*; | 1 | use super::*; |
2 | 2 | ||
3 | pub(super) fn is_path_start(p: &Parser) -> bool { | 3 | pub(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 | ||
7 | pub(super) fn use_path(p: &mut Parser) { | 10 | pub(super) fn use_path(p: &mut Parser) { |