]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Accept underscores in bindsym (Thanks jace)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 20 Nov 2009 14:33:38 +0000 (15:33 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 20 Nov 2009 14:34:06 +0000 (15:34 +0100)
src/cfgparse.l

index a80329fddf2b84e631bffb943d11910c77875d44..6e4a8678e4d08ca81f51f219473fd15d7a64468b 100644 (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]; }
 %%