diff options
author | axel <axel@liljencrantz.se> | 2006-10-07 10:56:25 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-10-07 10:56:25 +1000 |
commit | 560e53fd5f79be68a81cc4680ab91657e20e3002 (patch) | |
tree | 1807aadd45e70c61de5882dc1ad2f40a67d8a5c8 /parser.h | |
parent | 184d58cd360569fa44aa088dab3421b832313424 (diff) |
Add autoindentation support
darcs-hash:20061007005625-ac50b-11873654797eb1e98fd17893022bdf995be3e2aa.gz
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -305,11 +305,17 @@ const wchar_t *parser_get_block_desc( int block ); /** Test if the specified string can be parsed, or if more bytes need - to be read first. The result has the first bit set if the string - contains errors, and the second bit is set if the string contains - an unclosed block. + to be read first. The result will have the PARSER_TEST_ERROR bit + set if there is a syntax error in the code, and the + PARSER_TEST_INCOMPLETE bit set if the code contains unclosed + blocks. + + \param buff the text buffer to test + \param block_level if non-null, the block nesting level will be filled out into this array + \param out if non-null, any errors in the command will be filled out into this buffer + \param prefix the prefix string to prepend to each error message written to the \c out buffer */ -int parser_test( const wchar_t * buff, string_buffer_t *out, const wchar_t *prefix ); +int parser_test( const wchar_t * buff, int *block_level, string_buffer_t *out, const wchar_t *prefix ); /** Test if the specified string can be parsed as an argument list, |