[script] fix == not working

This commit is contained in:
suchmememanyskill
2021-01-04 18:27:17 +01:00
parent 12136d9289
commit 7e2a672753
2 changed files with 7 additions and 1 deletions

View File

@@ -162,6 +162,12 @@ Vector_t runLexar(const char* in, u32 len) {
vecAddElement(&vec, makeLexarToken(LSBracket, 0));
}
ELIFC('=') { // Do we need to keep = if the vars are assignments anyway?
if (in[1] == '='){
vecAddElement(&vec, makeLexarToken(EqualEqual, 0));
in++;
continue;
}
if (lx[vec.count - 1].token == Variable)
lx[vec.count - 1].token = VariableAssignment;