]> Dogcows Code - chaz/openbox/blobdiff - util/epist/epist.l
make epist compile with the new code base
[chaz/openbox] / util / epist / epist.l
index 86db62aea81654cfd053259c2bd1bc8f3ca02e15..6c7e08a5acdb567bba9b7bd03d43b0f2de297517 100644 (file)
@@ -1,12 +1,18 @@
 %{
+#ifdef    HAVE_CONFIG_H
+#  include "../../config.h"
+#endif // HAVE_CONFIG_H
+
 #include <stdio.h>
 #include <string.h>
 #include "yacc_parser.hh"
 
 extern YYSTYPE yylval;
-    
+
 %}
 
+%option yylineno
+
 %%
 
 \{                  return OBRACE;
@@ -16,11 +22,27 @@ extern YYSTYPE yylval;
 Options |
 options             return OPTIONS;
 Mod1 |
+mod1 |
 Mod2 |
+mod2 |
 Mod3 |
+mod3 |
 Mod4 |
+mod4 |
+Mod5 |
+mod5 |
 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;
This page took 0.021371 seconds and 4 git commands to generate.