[script] fix == not working

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

No files matched your search

+6
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;