;
mode:
- TOKMODE WHITESPACE QUOTEDSTRING WHITESPACE '{' optional_whitespace modelines optional_whitespace '}'
+ TOKMODE WHITESPACE QUOTEDSTRING WHITESPACE '{' modelines '}'
{
if (strcasecmp($<string>3, "default") == 0) {
printf("You cannot use the name \"default\" for your mode\n");
}
;
-optional_whitespace:
- /* empty */
- | WHITESPACE
- ;
modelines:
/* empty */
- | modelines WHITESPACE modeline
| modelines modeline
;
modeline:
- comment
+ WHITESPACE
+ | comment
| binding
{
if (current_bindings == NULL) {