From c0256edd2ef557feaa4bb8fc156b05d2b522d20e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 20 Nov 2009 15:33:38 +0100 Subject: [PATCH] Bugfix: Accept underscores in bindsym (Thanks jace) --- src/cfgparse.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } %% -- 2.39.5