fix miniswig outputting some \n from time to time
[supertux.git] / tools / miniswig / lexer.ll
index 263464d..42d7f64 100644 (file)
@@ -7,6 +7,10 @@
 #include "parser.hpp"
 #include "globals.hpp"
 
+// there seems to be a bug in flex that adds some ECHO directives
+// in some rules, we don't need debug output
+#define ECHO  {}
+
 #define YY_NEVER_INTERACTIVE 1
 #define YY_DECL int yylex(YYSTYPE* yylval)
 
@@ -95,6 +99,7 @@ protected                               { return T_PROTECTED; }
 private                                 { return T_PRIVATE; }
 namespace                               { return T_NAMESPACE; }
 __suspend                               { return T_SUSPEND; }
+__custom                                { return T_CUSTOM; }
 [a-zA-Z_][a-zA-Z_0-9]*                  {
         Namespace* ns = search_namespace;
         if(ns == 0)