--enable-tiny plus --enable-browser.
* src/rcfile.c: Tweak some comments and reshuffle some lines.
* src/rcfile.c (color_to_short): Elide a variable.
+ * src/rcfile.c (grab_and_store): First check that there is an
+ open syntax before checking that it is named "default".
2016-03-10 Benno Schulenberg <bensberg@justemail.net>
* src/rcfile.c (grab_and_store): Do not accept 'header" and 'magic'
{
regexlisttype *lastthing;
- /* The default syntax doesn't take any file matching stuff. */
- if (strcmp(live_syntax->name, "default") == 0 && *ptr != '\0') {
+ if (!opensyntax) {
rcfile_error(
- N_("The \"default\" syntax does not accept '%s' regexes"), kind);
+ N_("A '%s' command requires a preceding 'syntax' command"), kind);
return;
}
- if (!opensyntax) {
+ /* The default syntax doesn't take any file matching stuff. */
+ if (strcmp(live_syntax->name, "default") == 0 && *ptr != '\0') {
rcfile_error(
- N_("A '%s' command requires a preceding 'syntax' command"), kind);
+ N_("The \"default\" syntax does not accept '%s' regexes"), kind);
return;
}