Bugfix: Ignore trailing/leading whitespaces when defining a mode (Thanks badboy)

…and shame on you for trailing/leading whitespace :).
This commit is contained in:
Michael Stapelberg 2009-11-02 23:13:22 +01:00
parent a817519c0d
commit de3ca5c600
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ word_or_number:
; ;
mode: mode:
TOKMODE WHITESPACE QUOTEDSTRING WHITESPACE '{' modelines '}' TOKMODE WHITESPACE QUOTEDSTRING WHITESPACE '{' WHITESPACE modelines WHITESPACE '}'
{ {
if (strcasecmp($<string>3, "default") == 0) { if (strcasecmp($<string>3, "default") == 0) {
printf("You cannot use the name \"default\" for your mode\n"); printf("You cannot use the name \"default\" for your mode\n");