]> Dogcows Code - chaz/openbox/blobdiff - openbox/parse.l
use a context enum instead of quarks
[chaz/openbox] / openbox / parse.l
index c888b9f1a9fc2752db6404008963ad89dcf35101..427a55cdf2b8799e0b23edb2c47c9dc41a502d7b 100644 (file)
@@ -1,19 +1,16 @@
 %{
-#include <glib.h>
-#include "y.tab.h"
+#include "parse.h"
 #ifdef HAVE_STDLIB_H
 #  include <stdlib.h>
 #endif
 
-extern void yyerror(char *err);
-
 int yylineno = 1;
 %}
 
 real [-0-9][0-9]*\.[0-9]+
 integer [-0-9][0-9]*
 string \"[^"\n]*\"
-identifier [a-zA-Z][.a-zA-Z0-9]*
+identifier [a-zA-Z][-.a-zA-Z0-9]*
 bool ([tT][rR][uU][eE]|[fF][aA][lL][sS][eE]|[yY][eE][sS]|[nN][oO]|[oO][nN]|[oO][fF][fF])
 
 %%
This page took 0.021319 seconds and 4 git commands to generate.