diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-09-20 11:23:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-20 11:23:42 -0700 |
| commit | 5840bfba62f9b50eec51fbd23c8d2c635ae48ffc (patch) | |
| tree | f663ffd779c48ace0ec22ab4f0f36ee0751e9ebc | |
| parent | 70dff11b2967ec1c1f0c565c958eabb5840b26f5 (diff) | |
| parent | a2a7647c9085270694c254b6ae43053c7a239029 (diff) | |
Merge pull request #1181 from DanielGavin/parser-fix
Fix parser errors
| -rw-r--r-- | core/odin/parser/parser.odin | 2 | ||||
| -rw-r--r-- | core/odin/tokenizer/tokenizer.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index 8aa49f847..503836ec9 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -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 diff --git a/core/odin/tokenizer/tokenizer.odin b/core/odin/tokenizer/tokenizer.odin index dde59ff30..c06d05e1d 100644 --- a/core/odin/tokenizer/tokenizer.odin +++ b/core/odin/tokenizer/tokenizer.odin @@ -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 == '=' { |