diff options
author | 2006-12-14 23:40:25 +1000 | |
---|---|---|
committer | 2006-12-14 23:40:25 +1000 | |
commit | c1945f8275fdf31220fcd8dccbf36d02e69278fa (patch) | |
tree | ba83ebe8ff90a0efb0d96a21852fa19a54d0b28d /parser.c | |
parent | 4d368dc06c75217c346c64d06ce3060395c720b5 (diff) |
Minor highlighting tweaks to make highlighter handle switches to 'command' and 'builtin' builtins more correctly
darcs-hash:20061214134025-ac50b-e17f79d1d4d7594ab20a358296f84dbb6356f42b.gz
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -510,20 +510,7 @@ static int parser_skip_arguments( const wchar_t *cmd ) (void *)0 ); } -enum -{ - ARG_NON_SWITCH, - ARG_SWITCH, - ARG_SKIP -} - ; - - -/** - Check if the specified argument is a switch. Return ARG_SWITCH if yes, - ARG_NON_SWITCH if no and ARG_SKIP if the argument is '--' -*/ -static int parser_is_switch( const wchar_t *cmd ) +int parser_is_switch( const wchar_t *cmd ) { if( wcscmp( cmd, L"--" ) == 0 ) return ARG_SKIP; |