From 2d4009bfa98484fdb5f01a3dbf4327d8ea2dcfb7 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 14 Oct 2004 04:59:33 +0000 Subject: [PATCH] report invalid characters --- pandatool/src/xfile/xLexer.lxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandatool/src/xfile/xLexer.lxx b/pandatool/src/xfile/xLexer.lxx index d71be462ba..b3c963fcaa 100644 --- a/pandatool/src/xfile/xLexer.lxx +++ b/pandatool/src/xfile/xLexer.lxx @@ -604,3 +604,8 @@ SEPARATOR [ \t;,]+ } +. { + // Any other character is invalid. + accept(); + xyyerror("Invalid character '" + string(xyytext) + "'."); +}