ether-code 0.5.0 → 0.5.3
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/ether-compiler.js +85 -4
- package/ether-parser.js +74 -0
- package/generators/html-generator.js +13 -0
- package/generators/php-generator.js +221 -124
- package/i18n/i18n-css.json +702 -4871
- package/i18n/i18n-html.json +2410 -572
- package/i18n/i18n-js.json +418 -2781
- package/i18n/i18n-php.json +4414 -4305
- package/lexer/ether-lexer.js +9 -6
- package/package.json +1 -1
package/lexer/ether-lexer.js
CHANGED
|
@@ -559,13 +559,16 @@ class EtherLexer {
|
|
|
559
559
|
}
|
|
560
560
|
|
|
561
561
|
if (this.peek() === 'e' || this.peek() === 'E') {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
value += this.advance()
|
|
566
|
-
}
|
|
567
|
-
while (this.isDigit(this.peek())) {
|
|
562
|
+
const nextChar = this.peek(1)
|
|
563
|
+
if (this.isDigit(nextChar) || nextChar === '+' || nextChar === '-') {
|
|
564
|
+
type = TokenType.FLOAT
|
|
568
565
|
value += this.advance()
|
|
566
|
+
if (this.peek() === '+' || this.peek() === '-') {
|
|
567
|
+
value += this.advance()
|
|
568
|
+
}
|
|
569
|
+
while (this.isDigit(this.peek())) {
|
|
570
|
+
value += this.advance()
|
|
571
|
+
}
|
|
569
572
|
}
|
|
570
573
|
}
|
|
571
574
|
|