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.
master
Benno Schulenberg 2019-06-16 10:55:45 +02:00
parent 6bfbb2bcd9
commit 01e4f85f29
1 changed files with 0 additions and 6 deletions

View File

@ -1034,12 +1034,6 @@ void parse_rcfile(FILE *rcstream, bool just_syntax, bool intros_only)
continue; 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));; newitem = nmalloc(sizeof(augmentstruct));;
/* Store the content of an 'extendsyntax', for later parsing. */ /* Store the content of an 'extendsyntax', for later parsing. */