From 3e52bd0132c278dbcf9f33604df9be9ec2787191 Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 14 Dec 2005 06:11:21 +1000 Subject: [PATCH] More tweaks darcs-hash:20051213201121-ac50b-cdb07b1535b7a7f521d5a4360d09a449315a65a3.gz --- parser.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 3f861c34e..0b7b90b2b 100644 --- a/parser.c +++ b/parser.c @@ -118,6 +118,11 @@ The fish parser. Contains functions for parsing code. */ #define INVALID_ELSE_ERR_MSG L"'else' builtin not inside of if block" +/** + Error when using end builtin outside of block +*/ +#define INVALID_END_ERR_MSG L"'end' command outside of block" + /** Error message for Posix-style assignment */ @@ -2376,7 +2381,7 @@ int parser_test( wchar_t * buff, { error( SYNTAX_ERROR, tok_get_pos( &tok ), - L"'end' command outside of block" ); + INVALID_END_ERR_MSG ); print_errors(); } }