Fix reparsing bug on "{}{}"
This commit is contained in:
parent
7669113e7c
commit
edbc18516d
@ -111,7 +111,7 @@ fn is_balanced(tokens: &[Token]) -> bool {
|
||||
return false;
|
||||
}
|
||||
let mut balance = 0usize;
|
||||
for t in tokens.iter() {
|
||||
for t in &tokens[1..tokens.len() - 1] {
|
||||
match t.kind {
|
||||
L_CURLY => balance += 1,
|
||||
R_CURLY => {
|
||||
|
@ -0,0 +1,4 @@
|
||||
0
|
||||
0
|
||||
}
|
||||
{;
|
Loading…
Reference in New Issue
Block a user