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;
}
newcolor->fg = fg;
newcolor->bg = bg;
newcolor->attributes = attributes;
newcolor->fg = fg;
newcolor->bg = bg;
newcolor->attributes = attributes;
newcolor->end = NULL;
newcolor->end = NULL;
newcolor->next = NULL;
if (lastcolor == NULL)
live_syntax->color = newcolor;
else
lastcolor->next = newcolor;
if (lastcolor == NULL)
live_syntax->color = newcolor;
else
lastcolor->next = newcolor;
lastcolor = newcolor;
newcolor->next = NULL;
lastcolor = newcolor;
if (!expectend)
continue;