tweaks: remove a check that is no longer relevant
Since commit 7028adf2
from three days ago, also the color commands of
syntaxes that are defined in a main nanorc will get parsed during a
second pass, so it is perfectly possible to extend such syntaxes
later on in the same (or another) nanorc file.
Этот коммит содержится в:
родитель
6bfbb2bcd9
Коммит
01e4f85f29
@ -1034,12 +1034,6 @@ void parse_rcfile(FILE *rcstream, bool just_syntax, bool intros_only)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Disallow extending a syntax that is defined in a main nanorc. */
|
||||
if (sint->filename == NULL) {
|
||||
jot_error(N_("Only an 'include' syntax can be extended"));
|
||||
continue;
|
||||
}
|
||||
|
||||
newitem = nmalloc(sizeof(augmentstruct));;
|
||||
|
||||
/* Store the content of an 'extendsyntax', for later parsing. */
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user