Skip to content
This repository was archived by the owner on Jul 17, 2022. It is now read-only.

Commit 2ceff73

Browse files
fix: Compiler Stability
1 parent 9bec79b commit 2ceff73

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ExecutionTree.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ function buildCompoundTypes(tokens){
119119
}
120120
}
121121

122+
let removed = false
123+
122124
//Remove Whitespace and Create Strings
123125
for(let i = 0; i < tokens[l].length; i++){
124126
const token = tokens[l][i]
@@ -153,9 +155,17 @@ function buildCompoundTypes(tokens){
153155
tokens.splice(l, 1)
154156

155157
l--
158+
159+
removed = true
160+
161+
break
156162
}
157163
}
158164

165+
if(removed){
166+
continue
167+
}
168+
159169
if(inString){
160170
return new Backend.Error('Unclosed string!')
161171
}

0 commit comments

Comments
 (0)