tweaks: adjust the indentation after the previous change

And regroup things a bit.
master
Benno Schulenberg 2020-03-03 19:46:46 +01:00
parent 365058c48f
commit 6bab8d19c6
1 changed files with 10 additions and 11 deletions

View File

@ -1086,19 +1086,18 @@ void parse_rule(char *ptr, int rex_flags)
return; return;
} }
newcolor->fg = fg; newcolor->fg = fg;
newcolor->bg = bg; newcolor->bg = bg;
newcolor->attributes = attributes; newcolor->attributes = attributes;
newcolor->end = NULL;
newcolor->end = NULL; if (lastcolor == NULL)
newcolor->next = NULL; live_syntax->color = newcolor;
else
lastcolor->next = newcolor;
if (lastcolor == NULL) newcolor->next = NULL;
live_syntax->color = newcolor; lastcolor = newcolor;
else
lastcolor->next = newcolor;
lastcolor = newcolor;
if (!expectend) if (!expectend)
continue; continue;