Open vortex104 opened 1 year ago
Looking at the other differences on their wiki, wouldn't you need to support all the other changes as well? https://wiki.srb2.org/wiki/Lua#Changes_from_standard_Lua
I actually didn't know about most of those. I have only been having problems with the dollar sign issue. It would be useful to have the rest of those included as well.
The comments, continue, and not equals operator are already implemented. I think the string substitution and concatenation could probably be ignored, so I think the only other things that would need to be implemented would be the XOR operator and the pseudo-numbers. I don't know how the non-standard symbols setting works, so I don't know if the pseudo-numbers would be easy to implement with the current system.
Should I just edit the issue to say "Implement Sonic Robo Blast 2 non-standard symbols" then?
It is probably worth mentioning that I already have a fork of vscode-lua that supports SRB2's $ syntax, although it is not currently published anywhere public yet.
The games Sonic Robo Blast 2 and Sonic Robo Blast 2 Kart use the dollar sign symbol for a sort of replacement for assignment operators.
Example 1
is equivalent to
Example 2
is equivalent to
Example 3
is equivalent to