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.d-bf1~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4674fb7c0c7283ff034c67eee57ca9397cbdcbb5;p=i3%2Fi3 Bugfix: Accept underscores in bindsym (Thanks jace) --- diff --git a/src/cfgparse.l b/src/cfgparse.l index a80329fd..6e4a8678 100644 --- a/src/cfgparse.l +++ b/src/cfgparse.l @@ -86,7 +86,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]; } %%