aboutsummaryrefslogtreecommitdiff
path: root/etpo/lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'etpo/lexer.l')
-rw-r--r--etpo/lexer.l10
1 files changed, 6 insertions, 4 deletions
diff --git a/etpo/lexer.l b/etpo/lexer.l
index 9b5fee7..9bc4b75 100644
--- a/etpo/lexer.l
+++ b/etpo/lexer.l
@@ -53,6 +53,8 @@ error_code|ec { yylval.sval = g_strdup(yytext);
<QUOTED>\n { yylval.sval = g_strdup(yytext);
return LITERAL; };
<*>^#.*$ { };
+<*>^(error_table_base|index)[ \t]+[0-9]+$ { };
+<*>^(prefix|id|error_table_manager)[ \t]+.*$ { };
%%
/* Complete list of filenames, an iterator for that list, and the contents of
@@ -102,15 +104,15 @@ yywrap(void)
static void
header(void)
{
- const char *boilerplate = "const char *dummy = {\n";
- printf(boilerplate);
+ const char *boilerplate = "#include <glib/gi18n.h>\n\nconst char *dummy[] = {\n";
+ printf("%s", boilerplate);
}
static void
tail(void)
{
- const char *boilerplate = "};\n";
- printf(boilerplate);
+ const char *boilerplate = "\tNULL\n};\n";
+ printf("%s", boilerplate);
}
int
bgstack15