From: Michael Stapelberg Date: Mon, 2 Nov 2009 22:13:22 +0000 (+0100) Subject: Bugfix: Ignore trailing/leading whitespaces when defining a mode (Thanks badboy) X-Git-Tag: 3.d~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=de3ca5c600f3bc25325ab3610053ce6caee6c015;p=i3%2Fi3 Bugfix: Ignore trailing/leading whitespaces when defining a mode (Thanks badboy) …and shame on you for trailing/leading whitespace :). --- 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");