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 (in_escape) {
|
||||||
if (!(c > 47 && c < 58)) {
|
if (c > 47 && c < 58 || c == 'n' || c == 't' || c == 'r') {
|
||||||
in_escape = 0;
|
|
||||||
} else {
|
|
||||||
row->hl[i] = ESCAPE;
|
row->hl[i] = ESCAPE;
|
||||||
i++;
|
i++;
|
||||||
prev_sep = 0;
|
prev_sep = 0;
|
||||||
continue;
|
continue;
|
||||||
|
} else {
|
||||||
|
in_escape = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (c == '\\') {
|
if (c == '\\') {
|
||||||
|
|
Loading…
Reference in a new issue