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
parent
d82c753ba4
commit
6bfbb2bcd9
|
@ -337,7 +337,6 @@ void begin_new_syntax(char *ptr)
|
||||||
live_syntax->comment = mallocstrcpy(NULL, GENERAL_COMMENT_CHARACTER);
|
live_syntax->comment = mallocstrcpy(NULL, GENERAL_COMMENT_CHARACTER);
|
||||||
#endif
|
#endif
|
||||||
live_syntax->color = NULL;
|
live_syntax->color = NULL;
|
||||||
lastcolor = NULL;
|
|
||||||
live_syntax->nmultis = 0;
|
live_syntax->nmultis = 0;
|
||||||
|
|
||||||
/* Hook the new syntax in at the top of the list. */
|
/* 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;
|
live_syntax = syntax;
|
||||||
opensyntax = TRUE;
|
|
||||||
lastcolor = NULL;
|
lastcolor = NULL;
|
||||||
|
|
||||||
/* Fully parse the given syntax (as it is about to be used). */
|
/* Fully parse the given syntax (as it is about to be used). */
|
||||||
|
|
Loading…
Reference in New Issue