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 CHANGED
@@ -6,7 +6,7 @@ const http = require('http')
6
6
  const { EtherCompiler } = require('./compiler')
7
7
  const { Watcher } = require('./watcher')
8
8
 
9
- const VERSION = '0.6.5'
9
+ const VERSION = '0.6.6'
10
10
 
11
11
  const COLORS = {
12
12
  reset: '\x1b[0m',
@@ -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.tokens.push(new Token(TokenType.ERROR, 'Indentation incohérente', this.line, 1, indent))
309
+ if (this.indentStack[this.indentStack.length - 1] !== indent && indent > 0) {
310
+ this.indentStack.push(indent)
311
311
  }
312
312
  }
313
313
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ether-code",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "Ether - Le langage intentionnel",
5
5
  "main": "cli/compiler.js",
6
6
  "bin": {