aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'highlight.c')
-rw-r--r--highlight.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/highlight.c b/highlight.c
index 47d1ad74..f09ff805 100644
--- a/highlight.c
+++ b/highlight.c
@@ -22,6 +22,7 @@
#include "proc.h"
#include "parser.h"
#include "parse_util.h"
+#include "parser_keywords.h"
#include "builtin.h"
#include "function.h"
#include "env.h"
@@ -642,7 +643,7 @@ void highlight_shell( wchar_t * buff,
int mark = tok_get_pos( &tok );
color[ tok_get_pos( &tok ) ] = HIGHLIGHT_COMMAND;
- if( parser_is_subcommand( cmd ) )
+ if( parser_keywords_is_subcommand( cmd ) )
{
int sw;
@@ -662,9 +663,9 @@ void highlight_shell( wchar_t * buff,
tok_next( &tok );
- sw = parser_is_switch( tok_last( &tok ) );
+ sw = parser_keywords_is_switch( tok_last( &tok ) );
- if( !parser_is_block( cmd ) &&
+ if( !parser_keywords_is_block( cmd ) &&
sw == ARG_SWITCH )
{
/*