Fixed issues with multiple consecutive dollars

This fixes the issue with scripts, like `m6l1c` that accidentally use double dollars for targetnames, like `$$player`
This commit is contained in:
smallmodel 2024-01-22 22:19:15 +01:00
parent dd378db4d0
commit b8e8aead93
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -286,7 +286,7 @@ varname [a-zA-Z0-9_\"]+
"&=" { YYLEX( TOKEN_AND_EQUALS ); }
"^=" { YYLEX( TOKEN_EXCL_OR_EQUALS ); }
"|=" { YYLEX( TOKEN_OR_EQUALS ); }
"$" { BEGIN( VARIABLES ); YYLEX( TOKEN_DOLLAR ); }
[$]+ { BEGIN( VARIABLES ); YYLEX( TOKEN_DOLLAR ); }
"!" { YYLEX( TOKEN_NOT ); }
"~" { YYLEX( TOKEN_COMPLEMENT ); }