X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=tools%2Fminiswig%2Flexer.ll;h=954138b07fed3e9510061edefcd091c9a3a3e62f;hb=d2ed7a7f170e1a1ef9d1548e8b14292d175e0c33;hp=ac699ab5b2462a8dee3eaa140a9e00960afba351;hpb=5069d8fa90db33fd5f68540eda111f1fcf5f2d25;p=supertux.git diff --git a/tools/miniswig/lexer.ll b/tools/miniswig/lexer.ll index ac699ab5b..954138b07 100644 --- a/tools/miniswig/lexer.ll +++ b/tools/miniswig/lexer.ll @@ -1,4 +1,6 @@ %{ +#include + #include #include #include @@ -7,6 +9,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) @@ -94,6 +100,8 @@ public { return T_PUBLIC; } 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)