]> 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:33:38 +0000 (15:33 +0100)
src/cfgparse.l

index 4b706d667e99b94a55e17ea24c4e217adf0f37e4..0787f193d4fefff18ef44dfa2929c76820f60f51 100644 (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]; }
 %%