aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--highlight.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/highlight.c b/highlight.c
index b4255aad..4832df2c 100644
--- a/highlight.c
+++ b/highlight.c
@@ -282,11 +282,16 @@ static void highlight_param( const wchar_t * buff,
color[in_pos+1] = normal_status;
}
}
- else if( wcschr( L"nrtbe*?$(){}'\"<>^ \\#;|&", buff[in_pos] ) )
+ else if( wcschr( L"abefnrtv*?$(){}[]'\"<>^ \\#;|&", buff[in_pos] ) )
{
color[start_pos]=HIGHLIGHT_ESCAPE;
color[in_pos+1]=normal_status;
}
+ else if( wcschr( L"c", buff[in_pos] ) )
+ {
+ color[start_pos]=HIGHLIGHT_ESCAPE;
+ color[in_pos+2]=normal_status;
+ }
else if( wcschr( L"uUxX01234567", buff[in_pos] ) )
{
int i;