mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix few more parsing bugs
This commit is contained in:
parent
b98a3f9cd8
commit
c377a296e4
1 changed files with 2 additions and 2 deletions
|
|
@ -429,9 +429,9 @@ class MisParser {
|
|||
|
||||
/** Resolves a TorqueScript rvalue expression. Currently only supports the concatenation @ operator. */
|
||||
function resolveExpression(expr:String) {
|
||||
var parts = Util.splitIgnoreStringLiterals(expr, ' @ ').map(x -> {
|
||||
var parts = Util.splitIgnoreStringLiterals(expr, '@').map(x -> {
|
||||
x = StringTools.trim(x);
|
||||
if (StringTools.startsWith(x, '$ ') && this.variables[x] != null) {
|
||||
if (StringTools.startsWith(x, '$') && this.variables[x] != null) {
|
||||
// Replace the variable with its value
|
||||
x = this.resolveExpression(this.variables[x]);
|
||||
} else if (StringTools.startsWith(x, '"') && StringTools.endsWith(x, '"')) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue