From 3d6eca3f26c14887e9d6ebe248c434db21d6dd88 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 3 Jun 2019 15:04:00 +0200 Subject: [PATCH] tweaks: reshuffle some lines, to put the most likely candidate first --- src/rcfile.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index 41304604..5f2f8b51 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -970,16 +970,16 @@ static void check_vitals_mapped(void) /* Parse syntax-only commands. */ bool parse_syntax_commands(char *keyword, char *ptr) { - if (strcasecmp(keyword, "comment") == 0) + if (strcasecmp(keyword, "color") == 0) + parse_colors(ptr, NANO_REG_EXTENDED); + else if (strcasecmp(keyword, "icolor") == 0) + parse_colors(ptr, NANO_REG_EXTENDED | REG_ICASE); + else if (strcasecmp(keyword, "comment") == 0) #ifdef ENABLE_COMMENT pick_up_name("comment", ptr, &live_syntax->comment); #else ; #endif - else if (strcasecmp(keyword, "color") == 0) - parse_colors(ptr, NANO_REG_EXTENDED); - else if (strcasecmp(keyword, "icolor") == 0) - parse_colors(ptr, NANO_REG_EXTENDED | REG_ICASE); else if (strcasecmp(keyword, "linter") == 0) pick_up_name("linter", ptr, &live_syntax->linter); else