diff --git a/parser.c b/parser.c index b882c6e33..0d8368251 100644 --- a/parser.c +++ b/parser.c @@ -463,11 +463,7 @@ int parser_is_subcommand( const wchar_t *cmd ) (void *)0 ); } -/** - Test if the specified string is command that opens a new block -*/ - -static int parser_is_block( const wchar_t *word) +int parser_is_block( const wchar_t *word) { return contains_str( word, L"for", diff --git a/parser.h b/parser.h index 3542b8f07..028788d04 100644 --- a/parser.h +++ b/parser.h @@ -259,6 +259,12 @@ int parser_is_subcommand( const wchar_t *cmd ); */ 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'. Example: