summaryrefslogtreecommitdiff
path: root/spec.l
diff options
context:
space:
mode:
Diffstat (limited to 'spec.l')
-rw-r--r--spec.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec.l b/spec.l
index a24bfd33..e5001591 100644
--- a/spec.l
+++ b/spec.l
@@ -187,6 +187,11 @@ ID [a-zA-Z_][a-zA-Z0-9_]*
BEGIN(INITIAL);
}
+<*>. {
+ fprintf(stderr, "error: unexpected character \'%c\' at line %d\n",
+ *yytext, num_lines + 1);
+ exit(1);
+ }
%%