Stop silently ignoring unknown directives on an inline asm expression

This commit is contained in:
Krzesimir Nowak
2026-02-11 13:22:13 +01:00
parent ae91b9b369
commit 6cc6f06d4d

View File

@@ -3130,6 +3130,8 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
} else {
dialect = InlineAsmDialect_Intel;
}
} else {
syntax_error(token, "Invalid directive on inline asm expression: '#%.*s'", LIT(token.string));
}
} else {
syntax_error(f->curr_token, "Expected an identifier after hash");