X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=inline;f=util%2Fepist%2Fepist.l;h=c3db54b8120cea77867de794fc58f791ffef1257;hb=b81dbf9af620472ac5661a6a778f92a646184ce8;hp=86db62aea81654cfd053259c2bd1bc8f3ca02e15;hpb=bd05f7ec58f3e1f5839c372ad4fb007a8d8866f5;p=chaz%2Fopenbox diff --git a/util/epist/epist.l b/util/epist/epist.l index 86db62ae..c3db54b8 100644 --- a/util/epist/epist.l +++ b/util/epist/epist.l @@ -1,4 +1,8 @@ %{ +#ifdef HAVE_CONFIG_H +# include "../../config.h" +#endif // HAVE_CONFIG_H + #include #include #include "yacc_parser.hh" @@ -16,11 +20,25 @@ extern YYSTYPE yylval; Options | options return OPTIONS; Mod1 | +mod1 | Mod2 | +mod2 | Mod3 | +mod3 | Mod4 | +mod4 | Control | +control | +shift | Shift yylval = (int) strdup(yytext); return BINDING; +on | +On | +true | +True yylval = (int) strdup(yytext); return TRUE; +Off | +off | +false | +False yylval = (int) strdup(yytext); return FALSE; [0-9]+ yylval = (int) strdup(yytext); return NUMBER; \".+\" yylval = (int) strdup(yytext); return QUOTES; [a-zA-Z_0-9]+ yylval = (int) strdup(yytext); return WORD;