Fix '>>' operand being tokenized correctly and switch statement with bare semicolon.

This commit is contained in:
Daniel Gavin
2021-09-20 20:12:13 +02:00
parent 70dff11b29
commit a2a7647c90
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -786,7 +786,7 @@ parse_control_statement_semicolon_separator :: proc(p: ^Parser) -> bool {
if tok.kind != .Open_Brace {
return allow_token(p, .Semicolon)
}
if tok.text == ";" {
if p.curr_tok.text == ";" {
return allow_token(p, .Semicolon)
}
return false