mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
More tweaks
darcs-hash:20051213201121-ac50b-cdb07b1535b7a7f521d5a4360d09a449315a65a3.gz
This commit is contained in:
parent
211663a549
commit
3e52bd0132
1 changed files with 6 additions and 1 deletions
7
parser.c
7
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue