Skip to content

Commit

Permalink
Add missing escape highlighting for \c-style escapes and a few other …
Browse files Browse the repository at this point in the history
…escape codes

darcs-hash:20070925115514-75c98-3959f8729d32585232d191b4eead83935b36bff1.gz
  • Loading branch information
liljencrantz committed Sep 25, 2007
1 parent d44dd73 commit af9c206
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion highlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af9c206

Please sign in to comment.