From 0ed2d62263c28dd263fa9f161c415368a26d9782 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 19 Sep 2009 19:34:02 +0200 Subject: [PATCH] lexer: return HEX instead of NUMBER when parsing colors --- src/cfgparse.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfgparse.l b/src/cfgparse.l index 2332055a..c319137b 100644 --- a/src/cfgparse.l +++ b/src/cfgparse.l @@ -18,8 +18,8 @@ %% [^\n]+ { BEGIN(INITIAL); yylval.string = strdup(yytext); return STR; } ^#[^\n]* { return TOKCOMMENT; } -[0-9]+ { yylval.number = atoi(yytext); return NUMBER; } [0-9a-fA-F]+ { yylval.string = strdup(yytext); return HEX; } +[0-9]+ { yylval.number = atoi(yytext); return NUMBER; } bind { BEGIN(BIND_COND); return TOKBIND; } bindsym { BEGIN(BIND_COND); return TOKBINDSYM; } floating_modifier { return TOKFLOATING_MODIFIER; }