From de3ca5c600f3bc25325ab3610053ce6caee6c015 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 2 Nov 2009 23:13:22 +0100 Subject: [PATCH] Bugfix: Ignore trailing/leading whitespaces when defining a mode (Thanks badboy) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit …and shame on you for trailing/leading whitespace :). --- src/cfgparse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfgparse.y b/src/cfgparse.y index e137fc02..fbbd5c0e 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -276,7 +276,7 @@ word_or_number: ; mode: - TOKMODE WHITESPACE QUOTEDSTRING WHITESPACE '{' modelines '}' + TOKMODE WHITESPACE QUOTEDSTRING WHITESPACE '{' WHITESPACE modelines WHITESPACE '}' { if (strcasecmp($3, "default") == 0) { printf("You cannot use the name \"default\" for your mode\n"); -- 2.39.5