tweaks: remove two more unneeded assignments

'opensyntax' is relevant only during the first pass through all the
nanorc files (intros_only == TRUE) when it is checked that syntax
commands are grouped properly and not mixed with others.  And
'lastcolor' is relevant only during the second pass of a specific
syntax, because only then the color commands are actually parsed.
master
Benno Schulenberg 2019-06-16 10:40:15 +02:00
parent d82c753ba4
commit 6bfbb2bcd9
1 changed files with 0 additions and 2 deletions

View File

@ -337,7 +337,6 @@ void begin_new_syntax(char *ptr)
live_syntax->comment = mallocstrcpy(NULL, GENERAL_COMMENT_CHARACTER);
#endif
live_syntax->color = NULL;
lastcolor = NULL;
live_syntax->nmultis = 0;
/* Hook the new syntax in at the top of the list. */
@ -588,7 +587,6 @@ void parse_one_include(char *file, syntaxtype *syntax)
}
live_syntax = syntax;
opensyntax = TRUE;
lastcolor = NULL;
/* Fully parse the given syntax (as it is about to be used). */