Allow else-if statements
This commit is contained in:
parent
2c548c83aa
commit
0ab370b8e4
1 changed files with 10 additions and 8 deletions
|
|
@ -76,6 +76,7 @@ func BenchmarkAll(b *testing.B) {
|
||||||
|
|
||||||
for name, tc := range cases {
|
for name, tc := range cases {
|
||||||
b.Run(name, func(b *testing.B) {
|
b.Run(name, func(b *testing.B) {
|
||||||
|
for i := 0; i < b.N; i++ {
|
||||||
l := NewLexer(tc.src)
|
l := NewLexer(tc.src)
|
||||||
tokens, _ := l.Tokenize()
|
tokens, _ := l.Tokenize()
|
||||||
|
|
||||||
|
|
@ -89,6 +90,7 @@ func BenchmarkAll(b *testing.B) {
|
||||||
|
|
||||||
for vm.HasNext() && vm.Next() {
|
for vm.HasNext() && vm.Next() {
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue