commit 01e4f85f29bd3aebdf11acdbd66fec3abddfeb37
parent 6bfbb2bcd9e96edae2ea9e7174ee3a975c8d8e88
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 16 Jun 2019 10:55:45 +0200
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.
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/rcfile.c b/src/rcfile.c
@@ -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. */