ether-code 0.9.8 → 0.9.9

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.9.8'
9
+ const VERSION = '0.9.9'
10
10
 
11
11
  const COLORS = {
12
12
  reset: '\x1b[0m',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ether-code",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "description": "Ether - Le langage intentionnel",
5
5
  "main": "cli/compiler.js",
6
6
  "bin": {
@@ -172,6 +172,13 @@ class EtherParserHTML extends EtherParserBase {
172
172
  this.advance()
173
173
  }
174
174
 
175
+ if (this.current() && this.current().type === TokenType.COMMA) {
176
+ this.advance()
177
+ }
178
+ } else if (nextToken && nextToken.type === TokenType.STRING) {
179
+ attributes[attrName] = nextToken.value.replace(/^["']|["']$/g, '')
180
+ this.advance()
181
+
175
182
  if (this.current() && this.current().type === TokenType.COMMA) {
176
183
  this.advance()
177
184
  }
@@ -616,6 +623,7 @@ class EtherParserHTML extends EtherParserBase {
616
623
  'retour ligne possible': 'wbr',
617
624
  'carte image': 'map',
618
625
  'script': 'script',
626
+ 'style': 'style',
619
627
  'details': 'details',
620
628
  'resume': 'summary',
621
629
  'dialogue': 'dialog',