nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 3d6eca3f26c14887e9d6ebe248c434db21d6dd88
parent c025a60ce9e7741f18e203d612f7492aa1197572
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  3 Jun 2019 15:04:00 +0200

tweaks: reshuffle some lines, to put the most likely candidate first

Diffstat:
Msrc/rcfile.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 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