diff options
| author | gingerBill <bill@gingerbill.org> | 2020-03-07 21:12:52 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-03-07 21:12:52 +0000 |
| commit | a83d9f59f64c94e615afbed43b3f99ec9c46feee (patch) | |
| tree | c0c8c43b9d8efce4fcb71dcbad72414ff78b9c65 | |
| parent | 5d14189a18ea11f3c8c91b23bc9a2943aff31238 (diff) | |
Fix typo in parser.odin
| -rw-r--r-- | core/odin/parser/parser.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index c4e6d8142..29655766f 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -2754,7 +2754,7 @@ parse_binary_expr :: proc(p: ^Parser, lhs: bool, prec_in: int) -> ^ast.Expr { } else if op.kind == .When { x := expr; cond := parse_expr(p, lhs); - op2 := expect_token(p, .Else); + else_tok := expect_token(p, .Else); y := parse_expr(p, lhs); te := ast.new(ast.Ternary_When_Expr, expr.pos, end_pos(p.prev_tok)); te.x = x; |