aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2026-02-11 13:40:38 +0100
committerGitHub <noreply@github.com>2026-02-11 13:40:38 +0100
commitfedc0a9d96b607b17029cd9bbc4dac47e78b119c (patch)
tree15e1c653a9ad2ad397cec7d26c4e2bb90af25023 /src
parentae91b9b3693f1ee5b39f14e38a67af5f502bc829 (diff)
parent6cc6f06d4d29d681abc447825ed86018aae610ca (diff)
Merge pull request #6257 from krnowak/krnowak/asm-unknown-directives
Stop silently ignoring unknown directives on an inline asm expression
Diffstat (limited to 'src')
-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");