Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
lexer: return HEX instead of NUMBER when parsing colors
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Sep 19, 2009
1 parent b1ebbde commit 0ed2d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cfgparse.l
Expand Up @@ -18,8 +18,8 @@
%%
<BIND_A2WS_COND>[^\n]+ { BEGIN(INITIAL); yylval.string = strdup(yytext); return STR; }
^#[^\n]* { return TOKCOMMENT; }
[0-9]+ { yylval.number = atoi(yytext); return NUMBER; }
<COLOR_COND>[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; }
Expand Down

0 comments on commit 0ed2d62

Please sign in to comment.