diff options
| author | gingerBill <bill@gingerbill.org> | 2019-10-06 19:16:55 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-10-06 19:16:55 +0100 |
| commit | 939459b635b5042b10ab64a28efc573600ac98cb (patch) | |
| tree | c8aadbac42b7211abc223ec8d89d9b114fbe8f54 /src/parser.cpp | |
| parent | 562b518394ca358ac8aef1df9b480106fafe9375 (diff) | |
Change implicit semicolon rules for record types within procedure bodies; Update `package odin/*`
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 29254d7e8..e17d19787 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1344,7 +1344,8 @@ bool is_semicolon_optional_for_node(AstFile *f, Ast *s) { case Ast_UnionType: case Ast_EnumType: case Ast_BitFieldType: - return true; + // Require semicolon within a procedure body + return f->curr_proc == false; case Ast_ProcLit: return true; |