diff options
| author | gingerBill <bill@gingerbill.org> | 2020-08-26 22:48:32 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-08-26 22:48:32 +0100 |
| commit | d3eca21e40ded7dfc15a4f56b2eaaceffa55ccbe (patch) | |
| tree | c1cb359940ed8afa9388af35e1d7cf6540b8b4dc | |
| parent | df3690c32a4e988bcce5e3b5d6b338a801ed1518 (diff) | |
Fix style in parse.odin
| -rw-r--r-- | core/odin/parser/parser.odin | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index 38e97d51f..925aa1f0c 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -1654,13 +1654,10 @@ parse_field_list :: proc(p: ^Parser, follow: tokenizer.Token_Kind, allowed_flags names := make([]^ast.Expr, 1); names[0] = ast.new(ast.Ident, tok.pos, end_pos(tok)); switch ident in &names[0].derived { - case ast.Ident: { - ident.name = tok.text; - } - - case: { - unreachable(); - } + case ast.Ident: + ident.name = tok.text; + case: + unreachable(); } flags := check_field_flag_prefixes(p, len(list), allowed_flags, eaf.flags); |