tweaks: remove a bit of redundant code
When an included file has just been fully parsed, 'lastcolor' is still pointing at the last color regex that was added to the list -- no need to refind the end of this list.master
parent
ea1016efdb
commit
7f3ffe8544
|
@ -578,11 +578,6 @@ void parse_one_include(char *file, syntaxtype *syntax)
|
||||||
parse_rcfile(rcstream, TRUE, FALSE);
|
parse_rcfile(rcstream, TRUE, FALSE);
|
||||||
opensyntax = TRUE;
|
opensyntax = TRUE;
|
||||||
|
|
||||||
lastcolor = syntax->color;
|
|
||||||
if (lastcolor != NULL)
|
|
||||||
while (lastcolor->next != NULL)
|
|
||||||
lastcolor = lastcolor->next;
|
|
||||||
|
|
||||||
extra = syntax->augmentations;
|
extra = syntax->augmentations;
|
||||||
|
|
||||||
/* Apply any stored extendsyntax commands. */
|
/* Apply any stored extendsyntax commands. */
|
||||||
|
|
Loading…
Reference in New Issue