aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-09-25 21:55:14 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-09-25 21:55:14 +1000
commitaf9c2067e1fecb10ab7540e7f7682211448b81c0 (patch)
tree812ae25e5d9510652c5c1557c902326919b66342
parentd44dd73682dd08fd5c26e20666c18414798d7a73 (diff)
Add missing escape highlighting for \c-style escapes and a few other escape codes
darcs-hash:20070925115514-75c98-3959f8729d32585232d191b4eead83935b36bff1.gz
-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;