Merge pull request #1181 from DanielGavin/parser-fix

Fix parser errors
This commit is contained in:
Jeroen van Rijn
2021-09-20 11:23:42 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

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

View File

@@ -666,7 +666,7 @@ scan :: proc(t: ^Tokenizer) -> Token {
case '=':
advance_rune(t)
kind = .Gt_Eq
case '<':
case '>':
advance_rune(t)
kind = .Shr
if t.ch == '=' {