From: Michael Stapelberg Date: Sat, 19 Sep 2009 17:34:02 +0000 (+0200) Subject: lexer: return HEX instead of NUMBER when parsing colors X-Git-Tag: 3.d~89 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ed2d62263c28dd263fa9f161c415368a26d9782;p=i3%2Fi3 lexer: return HEX instead of NUMBER when parsing colors --- 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; }