summaryrefslogtreecommitdiff
path: root/grammar/lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'grammar/lexer.l')
-rw-r--r--grammar/lexer.l6
1 files changed, 6 insertions, 0 deletions
diff --git a/grammar/lexer.l b/grammar/lexer.l
index 48dba22..52cb8eb 100644
--- a/grammar/lexer.l
+++ b/grammar/lexer.l
@@ -30,6 +30,8 @@
%{
#include "config.h"
+#include "parserif.h"
+extern char *strdup(char*); /* somehow we do not get this from string.h... */
%}
%option noyywrap nodefault case-insensitive yylineno
@@ -180,6 +182,10 @@ int fileno(FILE *stream);
BEGIN INITIAL; }
"main_queue"[ \n\t]*"(" { yylval.objType = CNFOBJ_MAINQ;
BEGIN INOBJ; return BEGINOBJ; }
+"timezone"[ \n\t]*"(" { yylval.objType = CNFOBJ_TIMEZONE;
+ BEGIN INOBJ; return BEGINOBJ; }
+"parser"[ \n\t]*"(" { yylval.objType = CNFOBJ_PARSER;
+ BEGIN INOBJ; return BEGINOBJ; }
"global"[ \n\t]*"(" { yylval.objType = CNFOBJ_GLOBAL;
BEGIN INOBJ; return BEGINOBJ; }
"template"[ \n\t]*"(" { yylval.objType = CNFOBJ_TPL;