diff options
author | 2006-05-27 23:40:26 +1000 | |
---|---|---|
committer | 2006-05-27 23:40:26 +1000 | |
commit | c8b04f70cff103154d37c65c1b013eaf58e38009 (patch) | |
tree | f37591cf741801133c5380c0c5a248ca15e99d0f | |
parent | bffff77d17d8e6744a9c1cf2d6a88af1da5e985e (diff) |
Add highlighting of a few missing escapes
darcs-hash:20060527134026-ac50b-3ff05d1fe0246d37c1be6e4a6d4492bf411808b7.gz
-rw-r--r-- | highlight.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/highlight.c b/highlight.c index 6995184d..2b3b96eb 100644 --- a/highlight.c +++ b/highlight.c @@ -112,11 +112,42 @@ static void highlight_param( const wchar_t * buff, switch( buff[++in_pos] ) { + case L'~': + case L'%': + { + if( in_pos == 1 ) + { + color[start_pos] = HIGHLIGHT_ESCAPE; + color[in_pos+1] = HIGHLIGHT_NORMAL; + } + break; + } + + case L',': + { + if( bracket_count ) + { + color[start_pos] = HIGHLIGHT_ESCAPE; + color[in_pos+1] = HIGHLIGHT_NORMAL; + } + + break; + } + case L'n': case L'r': case L't': case L'b': case L'e': + case L'*': + case L'?': + case L'$': + case L'(': + case L')': + case L'{': + case L'}': + case L'\'': + case L'"': { color[start_pos]=HIGHLIGHT_ESCAPE; color[in_pos+1]=HIGHLIGHT_NORMAL; |