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 committed 2024-01-22 22:20:25 +01:00
1 parent dd378db4d0
commit b8e8aead93
1 file changed
+1 -1
+1 -1
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 ); }