aboutsummaryrefslogtreecommitdiff
path: root/crates/parser/src/grammar/items.rs
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-01-15 20:07:38 +0000
committerLukas Wirth <[email protected]>2021-01-15 21:18:43 +0000
commit98718e0544f42e55642d2838b00d6a7bef1e2414 (patch)
tree15d727f30f9dc3338203f8f70f19f8023133f382 /crates/parser/src/grammar/items.rs
parent8a869e870ac6328967fb120a0ebe44a9c900eaf0 (diff)
Wrap remaining self/super/crate in Name{Ref}
Diffstat (limited to 'crates/parser/src/grammar/items.rs')
-rw-r--r--crates/parser/src/grammar/items.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/parser/src/grammar/items.rs b/crates/parser/src/grammar/items.rs
index 2070ce163..1d894e907 100644
--- a/crates/parser/src/grammar/items.rs
+++ b/crates/parser/src/grammar/items.rs
@@ -270,7 +270,9 @@ fn extern_crate(p: &mut Parser, m: Marker) {
270 p.bump(T![crate]); 270 p.bump(T![crate]);
271 271
272 if p.at(T![self]) { 272 if p.at(T![self]) {
273 let m = p.start();
273 p.bump(T![self]); 274 p.bump(T![self]);
275 m.complete(p, NAME_REF);
274 } else { 276 } else {
275 name_ref(p); 277 name_ref(p);
276 } 278 }