From 4674fb7c0c7283ff034c67eee57ca9397cbdcbb5 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 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]; } %% -- 2.39.5