Skip to content

Commit 388984a

Browse files
committed
Speculative debugging assistance
1 parent a2fdaf0 commit 388984a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/parser.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,10 @@ impl Parser {
385385
self.prev_token();
386386
self.prev_token();
387387
self.prev_token();
388-
self.expected(format!("an expression: {} - {} {} {}", self.index, self.next_token().to_string(), self.next_token().to_string(), self.next_token().to_string()).as_str(), unexpected)
388+
let t1 = self.next_token().to_string();
389+
let t2 = self.next_token().to_string();
390+
let t3 = self.next_token().to_string();
391+
self.expected(format!("an expression: {} - {} {} {}", self.index, &t1, &t2, &t3).as_str(), unexpected)
389392
},
390393
}?;
391394

0 commit comments

Comments
 (0)