Highlight tab new line and carriage return in escape seqeunce
This commit is contained in:
parent
59d11fe427
commit
e91304b1e9
1 changed files with 3 additions and 3 deletions
6
vip.c
6
vip.c
|
@ -823,13 +823,13 @@ void update_highlight(row_t *row)
|
|||
}
|
||||
|
||||
if (in_escape) {
|
||||
if (!(c > 47 && c < 58)) {
|
||||
in_escape = 0;
|
||||
} else {
|
||||
if (c > 47 && c < 58 || c == 'n' || c == 't' || c == 'r') {
|
||||
row->hl[i] = ESCAPE;
|
||||
i++;
|
||||
prev_sep = 0;
|
||||
continue;
|
||||
} else {
|
||||
in_escape = 0;
|
||||
}
|
||||
} else {
|
||||
if (c == '\\') {
|
||||
|
|
Loading…
Reference in a new issue