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.
Этот коммит содержится в:
родитель
d82c753ba4
Коммит
6bfbb2bcd9
@ -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). */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user