Add @force to foreign import
This commit is contained in:
1 parent
44a303e577
commit
3b898e5224
7 files changed
+44
-1
No files matched your search
@@ -827,6 +827,9 @@ parse_attribute :: proc(p: ^Parser, tok: tokenizer.Token, open_kind, close_kind:
|
||||
case ast.Foreign_Block_Decl:
|
||||
if d.docs == nil do d.docs = docs;
|
||||
append(&d.attributes, attribute);
|
||||
case ast.Foreign_Import_Decl:
|
||||
if d.docs == nil do d.docs = docs;
|
||||
append(&d.attributes, attribute);
|
||||
case:
|
||||
error(p, decl.pos, "expected a value or foreign declaration after an attribute");
|
||||
free(attribute);
|
||||
|
||||
Reference in new issue
Block a user