diff options
author | axel <axel@liljencrantz.se> | 2007-01-30 02:26:24 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2007-01-30 02:26:24 +1000 |
commit | ba932b659022b7cc2d746b4dc4536e111dd23ec0 (patch) | |
tree | f1770a65e5040a0b68a4694a550cf8aceb1c93d7 /reader.c | |
parent | c02e2b13207448ee7504f361e3a1abf4fa946c82 (diff) |
Add support for -s switch to read builtin, enables shell syntax highlighting in the read builtin
darcs-hash:20070129162624-ac50b-dff9d9ebf16ce3247b83d917efbffd4942cda83f.gz
Diffstat (limited to 'reader.c')
-rw-r--r-- | reader.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -1719,12 +1719,7 @@ void reader_run_command( const wchar_t *cmd ) } -/** - Test if the given shell command contains errors. Uses parser_test - for testing. -*/ - -static int shell_test( wchar_t *b ) +int reader_shell_test( wchar_t *b ) { int res = parser_test( b, 0, 0, 0 ); @@ -1904,7 +1899,7 @@ static int read_i() reader_push(L"fish"); reader_set_complete_function( &complete ); reader_set_highlight_function( &highlight_shell ); - reader_set_test_function( &shell_test ); + reader_set_test_function( &reader_shell_test ); data->prev_end_loop=0; |