parser: Implement parsing mode sections

Wait for further commits before they are actually used.
This commit is contained in:
Michael Stapelberg
2009-09-27 17:02:13 +02:00
parent 051caf571d
commit d916e075c3
2 changed files with 60 additions and 16 deletions

View File

@ -25,6 +25,7 @@
^[ \t]*#[^\n]* { return TOKCOMMENT; }
<COLOR_COND>[0-9a-fA-F]+ { yylval.string = strdup(yytext); return HEX; }
[0-9]+ { yylval.number = atoi(yytext); return NUMBER; }
mode { return TOKMODE; }
bind { BEGIN(BIND_COND); return TOKBIND; }
bindsym { BEGIN(BIND_COND); return TOKBINDSYM; }
floating_modifier { return TOKFLOATING_MODIFIER; }