ether-code 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/ether.js +1 -1
- package/lexer/ether-lexer.js +2 -2
- package/package.json +1 -1
package/cli/ether.js
CHANGED
package/lexer/ether-lexer.js
CHANGED
|
@@ -306,8 +306,8 @@ class EtherLexer {
|
|
|
306
306
|
this.indentStack.pop()
|
|
307
307
|
this.tokens.push(new Token(TokenType.DEDENT, '', this.line, 1, indent))
|
|
308
308
|
}
|
|
309
|
-
if (this.indentStack[this.indentStack.length - 1] !== indent) {
|
|
310
|
-
this.
|
|
309
|
+
if (this.indentStack[this.indentStack.length - 1] !== indent && indent > 0) {
|
|
310
|
+
this.indentStack.push(indent)
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|