aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 360537ab7..0efe2714a 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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");