From: Michael Stapelberg Date: Fri, 20 Nov 2009 14:33:38 +0000 (+0100) Subject: Bugfix: Accept underscores in bindsym (Thanks jace) X-Git-Tag: 3.e~6^2~232 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c0256edd2ef557feaa4bb8fc156b05d2b522d20e;p=i3%2Fi3 Bugfix: Accept underscores in bindsym (Thanks jace) --- diff --git a/src/cfgparse.l b/src/cfgparse.l index 4b706d66..0787f193 100644 --- a/src/cfgparse.l +++ b/src/cfgparse.l @@ -87,7 +87,7 @@ shift { return TOKSHIFT; } return QUOTEDSTRING; } [^ \t]+ { BEGIN(INITIAL); yylval.string = strdup(yytext); return STR_NG; } -[a-zA-Z0-9]+ { yylval.string = strdup(yytext); return WORD; } +[a-zA-Z0-9_]+ { yylval.string = strdup(yytext); return WORD; } [a-zA-Z]+ { yylval.string = strdup(yytext); return WORD; } . { return (int)yytext[0]; } %%