mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 22:14:53 +00:00
Make parser_is_block public
darcs-hash:20060329212942-ac50b-ad8334532a719152766b4b530474616b78564f24.gz
This commit is contained in:
parent
dc91d7aec4
commit
6748b9699f
2 changed files with 7 additions and 5 deletions
6
parser.c
6
parser.c
|
@ -463,11 +463,7 @@ int parser_is_subcommand( const wchar_t *cmd )
|
||||||
(void *)0 );
|
(void *)0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
int parser_is_block( const wchar_t *word)
|
||||||
Test if the specified string is command that opens a new block
|
|
||||||
*/
|
|
||||||
|
|
||||||
static int parser_is_block( const wchar_t *word)
|
|
||||||
{
|
{
|
||||||
return contains_str( word,
|
return contains_str( word,
|
||||||
L"for",
|
L"for",
|
||||||
|
|
6
parser.h
6
parser.h
|
@ -259,6 +259,12 @@ int parser_is_subcommand( const wchar_t *cmd );
|
||||||
*/
|
*/
|
||||||
int parser_is_reserved( const wchar_t *word );
|
int parser_is_reserved( const wchar_t *word );
|
||||||
|
|
||||||
|
/**
|
||||||
|
Test if the specified string is command that opens a new block
|
||||||
|
*/
|
||||||
|
|
||||||
|
int parser_is_block( const wchar_t *word);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns a string describing the current parser pisition in the format 'FILENAME (line LINE_NUMBER): LINE'.
|
Returns a string describing the current parser pisition in the format 'FILENAME (line LINE_NUMBER): LINE'.
|
||||||
Example:
|
Example:
|
||||||
|
|
Loading…
Reference in a new issue