Remove #[...] attribute syntax.

(Not really worth the change)
This commit is contained in:
gingerBill
2018-12-26 16:23:25 +00:00
parent eb5af2876a
commit 66a9fde12c
2 changed files with 48 additions and 51 deletions
+1
View File
@@ -173,6 +173,7 @@ Typeid_Kind :: enum u8 {
Bit_Set,
Opaque,
}
#assert(len(Typeid_Kind) < 32);
Typeid_Bit_Field :: bit_field #align align_of(uintptr) {
index: 8*size_of(align_of(uintptr)) - 8,
+1 -5
View File
@@ -3851,11 +3851,8 @@ Ast *parse_stmt(AstFile *f) {
}
case Token_Hash: {
Token hash_token = expect_token(f, Token_Hash);
if (f->curr_token.kind == Token_OpenBracket) {
return parse_attribute(f, hash_token, Token_OpenBracket, Token_CloseBracket);
} else {
Ast *s = nullptr;
Token hash_token = expect_token(f, Token_Hash);
Token name = expect_token(f, Token_Ident);
String tag = name.string;
@@ -3906,7 +3903,6 @@ Ast *parse_stmt(AstFile *f) {
fix_advance_to_next_stmt(f);
return s;
}
} break;
case Token_OpenBrace: