aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/grammar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/grammar.rs')
-rw-r--r--crates/ra_syntax/src/grammar.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/grammar.rs b/crates/ra_syntax/src/grammar.rs
index 531d0458f..060c0ccdf 100644
--- a/crates/ra_syntax/src/grammar.rs
+++ b/crates/ra_syntax/src/grammar.rs
@@ -140,7 +140,7 @@ fn opt_fn_ret_type(p: &mut Parser) -> bool {
140} 140}
141 141
142fn name_r(p: &mut Parser, recovery: TokenSet) { 142fn name_r(p: &mut Parser, recovery: TokenSet) {
143 if p.current().is_ident() { 143 if p.at(IDENT) {
144 let m = p.start(); 144 let m = p.start();
145 p.bump(); 145 p.bump();
146 m.complete(p, NAME); 146 m.complete(p, NAME);
@@ -154,7 +154,7 @@ fn name(p: &mut Parser) {
154} 154}
155 155
156fn name_ref(p: &mut Parser) { 156fn name_ref(p: &mut Parser) {
157 if p.current().is_ident() { 157 if p.at(IDENT) {
158 let m = p.start(); 158 let m = p.start();
159 p.bump(); 159 p.bump();
160 m.complete(p, NAME_REF); 160 m.complete(p, NAME_REF);