Add ScriptVariable conditions from Ubertools into the script lexer

Those are Ubertools / F.A.K.K remnants that are valid in original mohaa script grammar
This commit is contained in:
smallmodel 2025-04-26 19:10:08 +02:00
parent f2a6278daa
commit 816126b13a
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -260,6 +260,8 @@ varname [a-zA-Z0-9_\"$\\]+
";" { YYLEX( TOKEN_SEMICOLON ); }
"==" { YYLEX( TOKEN_EQUALITY ); }
"ifequal" { YYLEX( TOKEN_EQUALITY ); }
"ifstrequal" { YYLEX( TOKEN_EQUALITY ); }
"||" { YYLEX( TOKEN_LOGICAL_OR ); }
"&&" { YYLEX( TOKEN_LOGICAL_AND ); }
@ -267,10 +269,16 @@ varname [a-zA-Z0-9_\"$\\]+
"^" { YYLEX( TOKEN_BITWISE_EXCL_OR ); }
"&" { YYLEX( TOKEN_BITWISE_AND ); }
"!=" { YYLEX( TOKEN_INEQUALITY ); }
"ifnotequal" { YYLEX( TOKEN_INEQUALITY ); }
"ifstrnotequal" { YYLEX( TOKEN_INEQUALITY ); }
"<" { YYLEX( TOKEN_LESS_THAN ); }
"ifless" { YYLEX( TOKEN_LESS_THAN ); }
">" { YYLEX( TOKEN_GREATER_THAN ); }
"ifgreater" { YYLEX( TOKEN_GREATER_THAN ); }
"<=" { YYLEX( TOKEN_LESS_THAN_OR_EQUAL ); }
"iflessequal" { YYLEX( TOKEN_LESS_THAN_OR_EQUAL ); }
">=" { YYLEX( TOKEN_GREATER_THAN_OR_EQUAL ); }
"ifgreaterequal" { YYLEX( TOKEN_GREATER_THAN_OR_EQUAL ); }
[ \t]"-" { YYLEX( TOKEN_NEG ); }
"+" { YYLEX( TOKEN_PLUS ); }