diff options
author | axel <axel@liljencrantz.se> | 2005-12-14 06:11:21 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-12-14 06:11:21 +1000 |
commit | 3e52bd0132c278dbcf9f33604df9be9ec2787191 (patch) | |
tree | 8f7f454401c7b5fbb2a7cbcd69b8b3f23fc6825a /parser.c | |
parent | 211663a549e6231a255f225d53dd2362c64eb9c7 (diff) |
More tweaks
darcs-hash:20051213201121-ac50b-cdb07b1535b7a7f521d5a4360d09a449315a65a3.gz
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -119,6 +119,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 */ #define COMMAND_ASSIGN_ERR_MSG L"Unknown command %ls. Did you mean 'set VARIABLE VALUE'? For information on setting variable values, see the manual section on the set command by typing 'help set'." @@ -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(); } } |