summaryrefslogtreecommitdiff
path: root/yarp/diagnostic.c
diff options
context:
space:
mode:
Diffstat (limited to 'yarp/diagnostic.c')
-rw-r--r--yarp/diagnostic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/yarp/diagnostic.c b/yarp/diagnostic.c
index cade793cfe..60a80ece17 100644
--- a/yarp/diagnostic.c
+++ b/yarp/diagnostic.c
@@ -77,6 +77,7 @@ static const char* const diagnostic_messages[YP_DIAGNOSTIC_ID_LEN] = {
[YP_ERR_BEGIN_TERM] = "Expected an `end` to close the `begin` statement",
[YP_ERR_BEGIN_UPCASE_BRACE] = "Expected a `{` after `BEGIN`",
[YP_ERR_BEGIN_UPCASE_TERM] = "Expected a `}` to close the `BEGIN` statement",
+ [YP_ERR_BEGIN_UPCASE_TOPLEVEL] = "BEGIN is permitted only at toplevel",
[YP_ERR_BLOCK_PARAM_LOCAL_VARIABLE] = "Expected a local variable name in the block parameters",
[YP_ERR_BLOCK_PARAM_PIPE_TERM] = "Expected the block parameters to end with `|`",
[YP_ERR_BLOCK_TERM_BRACE] = "Expected a block beginning with `{` to end with `}`",