aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/paths.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-24 18:50:37 +0100
committerAleksey Kladov <[email protected]>2018-08-24 18:50:37 +0100
commitf104458d45e30024f8a4a02c1ad4101ed74b08f9 (patch)
tree4317dc4c504a90ea0876c862b049eee6d6513e98 /crates/libsyntax2/src/grammar/paths.rs
parentb0aac1ca98280efee9587897d86ef447933004dd (diff)
parameter parsing does not destroy blocks
Diffstat (limited to 'crates/libsyntax2/src/grammar/paths.rs')
-rw-r--r--crates/libsyntax2/src/grammar/paths.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/grammar/paths.rs b/crates/libsyntax2/src/grammar/paths.rs
index 8f5e82d91..7c9fb8be2 100644
--- a/crates/libsyntax2/src/grammar/paths.rs
+++ b/crates/libsyntax2/src/grammar/paths.rs
@@ -1,5 +1,8 @@
1use super::*; 1use super::*;
2 2
3pub(super) const PATH_FIRST: TokenSet =
4 token_set![IDENT, SELF_KW, SUPER_KW, COLONCOLON, L_ANGLE];
5
3pub(super) fn is_path_start(p: &Parser) -> bool { 6pub(super) fn is_path_start(p: &Parser) -> bool {
4 match p.current() { 7 match p.current() {
5 IDENT | SELF_KW | SUPER_KW | COLONCOLON => true, 8 IDENT | SELF_KW | SUPER_KW | COLONCOLON => true,