mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
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:
parent
d44dd73682
commit
af9c2067e1
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue