Bugfix: Accept underscores in bindsym (Thanks jace)

This commit is contained in:
Michael Stapelberg 2009-11-20 15:33:38 +01:00
parent 2a966014a7
commit 4674fb7c0c
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ shift { return TOKSHIFT; }
return QUOTEDSTRING;
}
<ASSIGN_COND>[^ \t]+ { BEGIN(INITIAL); yylval.string = strdup(yytext); return STR_NG; }
<BINDSYM_AWS_COND>[a-zA-Z0-9]+ { yylval.string = strdup(yytext); return WORD; }
<BINDSYM_AWS_COND>[a-zA-Z0-9_]+ { yylval.string = strdup(yytext); return WORD; }
[a-zA-Z]+ { yylval.string = strdup(yytext); return WORD; }
. { return (int)yytext[0]; }
%%