aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-03-15 14:27:54 +0000
committergingerBill <bill@gingerbill.org>2020-03-15 14:27:54 +0000
commit3951b93d0a1f68b0c7ed1a32324f72e5cdc253fb (patch)
tree4c845e388949682d8a4567c39f0b3003c1f80356 /src/check_stmt.cpp
parent10bac2445bb4e0e2b8e3b229f79a4bae9dedfdf7 (diff)
Fix branch statements within inline for blocks (partial hack)
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 4b250c6a6..67172d951 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1692,12 +1692,12 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
switch (token.kind) {
case Token_break:
if ((flags & Stmt_BreakAllowed) == 0 && bs->label == nullptr) {
- error(token, "'break' only allowed in loops or 'switch' statements");
+ error(token, "'break' only allowed in non-inline loops or 'switch' statements");
}
break;
case Token_continue:
if ((flags & Stmt_ContinueAllowed) == 0 && bs->label == nullptr) {
- error(token, "'continue' only allowed in loops");
+ error(token, "'continue' only allowed in non-inline loops");
}
break;
case Token_fallthrough: