Browse Source

report invalid characters

David Rose 21 years ago
parent
commit
2d4009bfa9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      pandatool/src/xfile/xLexer.lxx

+ 5 - 0
pandatool/src/xfile/xLexer.lxx

@@ -604,3 +604,8 @@ SEPARATOR            [ \t;,]+
 }
 
   
+. {
+  // Any other character is invalid.
+  accept();
+  xyyerror("Invalid character '" + string(xyytext) + "'.");
+}