Add missing escape highlighting for \c-style escapes and a few other escape codes

darcs-hash:20070925115514-75c98-3959f8729d32585232d191b4eead83935b36bff1.gz
This commit is contained in:
liljencrantz 2007-09-25 21:55:14 +10:00
parent d44dd73682
commit af9c2067e1

View file

@ -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;