aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_constants.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-16 16:52:23 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-16 16:52:23 -0800
commit3e9153d955aa2e908f1dd661c8b91556ca8e0ee8 (patch)
tree71e1d1c592d727181a9eaee53b9355ba7c6194e4 /parse_constants.h
parent0e421ea31dd8293c64960912ab9651b2a3b2b07d (diff)
Clean up some error messages. Don't show the line in the error message
if it's the first line and we're interactive, since then it's obvious
Diffstat (limited to 'parse_constants.h')
-rw-r--r--parse_constants.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/parse_constants.h b/parse_constants.h
index e3eebbf5..a322073e 100644
--- a/parse_constants.h
+++ b/parse_constants.h
@@ -188,14 +188,13 @@ typedef unsigned int parser_test_error_bits_t;
*/
#define INVALID_CASE_ERR_MSG _( L"'case' builtin not inside of switch block")
-/**
- Error when using loop control builtins (break or continue) outside of loop
-*/
-#define INVALID_LOOP_ERR_MSG _( L"Loop control command while not inside of loop" )
+/** Error when using break outside of loop */
+#define INVALID_BREAK_ERR_MSG _( L"break command while not inside of loop" )
-/**
- Error when using return builtin outside of function definition
-*/
+/** Error when using continue outside of loop */
+#define INVALID_CONTINUE_ERR_MSG _( L"continue command while not inside of loop" )
+
+/** Error when using return builtin outside of function definition */
#define INVALID_RETURN_ERR_MSG _( L"'return' builtin command outside of function definition" )
/**