X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=tools%2Fminiswig%2Flexer.ll;h=42d7f648c2a0989ca7fccaf6e163487eb7506835;hb=7cf5d7c12c212819c17041832d181842842d6cf8;hp=263464de01661b8f1b11a666b984ff32e3553001;hpb=8f82a8e619346be81a3c1bf943baf68953f1f4e7;p=supertux.git diff --git a/tools/miniswig/lexer.ll b/tools/miniswig/lexer.ll index 263464de0..42d7f648c 100644 --- a/tools/miniswig/lexer.ll +++ b/tools/miniswig/lexer.ll @@ -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)