aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorErlend Tobiassen <[email protected]>2019-01-22 13:36:57 +0000
committerErlend Tobiassen <[email protected]>2019-01-22 13:36:57 +0000
commit9f3d133813e519ea769c23565843587dea8d55b2 (patch)
tree098add8ec62789f334163dd30ff7e00490f1bb44 /crates
parent8198cde13b8dc7c04190e5341bce3f6a0315e99b (diff)
Prefer TYPE_FIRST
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_syntax/src/grammar/types.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/grammar/types.rs b/crates/ra_syntax/src/grammar/types.rs
index 83a54c190..c626abcfd 100644
--- a/crates/ra_syntax/src/grammar/types.rs
+++ b/crates/ra_syntax/src/grammar/types.rs
@@ -37,10 +37,10 @@ fn type_with_bounds_cond(p: &mut Parser, allow_bounds: bool) {
37} 37}
38 38
39pub(super) fn is_type_start(p: &mut Parser) -> bool { 39pub(super) fn is_type_start(p: &mut Parser) -> bool {
40 match p.current() { 40 if TYPE_FIRST.contains(p.current()) {
41 L_PAREN | EXCL | STAR | L_BRACK | AMP | UNDERSCORE | FN_KW | FOR_KW | IMPL_KW | DYN_KW 41 true
42 | L_ANGLE => true, 42 } else {
43 _ => paths::is_path_start(p), 43 paths::is_path_start(p)
44 } 44 }
45} 45}
46 46