Browse Source

Fix style in parse.odin

gingerBill 5 years ago
parent
commit
d3eca21e40
1 changed files with 4 additions and 7 deletions
  1. 4 7
      core/odin/parser/parser.odin

+ 4 - 7
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);