Bugfix: Ignore trailing/leading whitespaces when defining a mode (Thanks badboy)
…and shame on you for trailing/leading whitespace :).
This commit is contained in:
parent
a817519c0d
commit
de3ca5c600
|
@ -276,7 +276,7 @@ word_or_number:
|
|||
;
|
||||
|
||||
mode:
|
||||
TOKMODE WHITESPACE QUOTEDSTRING WHITESPACE '{' modelines '}'
|
||||
TOKMODE WHITESPACE QUOTEDSTRING WHITESPACE '{' WHITESPACE modelines WHITESPACE '}'
|
||||
{
|
||||
if (strcasecmp($<string>3, "default") == 0) {
|
||||
printf("You cannot use the name \"default\" for your mode\n");
|
||||
|
|
Loading…
Reference in New Issue