Bugfix: Accept underscores in bindsym (Thanks jace)

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

View File

@ -87,7 +87,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]; }
%%