Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit d234a7a

Browse files
committed
Fix -> ~ operators trying to get literal strings
1 parent 50b14e5 commit d234a7a

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

src/Base/Parser.hx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,8 +1258,8 @@ class Parser {
12581258
}
12591259
}
12601260

1261-
var v = this.getLiteralString();
1262-
return this.instruction( trace, Instr.Triggered, [v] );
1261+
var varname = this.getTokenRaw();
1262+
return this.instruction( trace, Instr.Triggered, [varname] );
12631263
}
12641264

12651265
if (this.acceptRoamingToken("operator", "$")) {
@@ -1273,10 +1273,8 @@ class Parser {
12731273
}
12741274
}
12751275

1276-
var v = this.getTokenRaw();
1277-
this.delta.set(v, true);
1278-
1279-
return this.instruction( trace, Instr.Delta, [v] );
1276+
var varname = this.getTokenRaw();
1277+
return this.instruction( trace, Instr.Delta, [varname] );
12801278
}
12811279

12821280
if (this.acceptRoamingToken("operator", "->")) {
@@ -1290,8 +1288,8 @@ class Parser {
12901288
}
12911289
}
12921290

1293-
var v = this.getLiteralString();
1294-
return this.instruction( trace, Instr.Connected, [v] );
1291+
var varname = this.getTokenRaw();
1292+
return this.instruction( trace, Instr.Connected, [varname] );
12951293
}
12961294

12971295
return this.expr18();

0 commit comments

Comments
 (0)