@tokens-studio/tokenscript-interpreter 0.36.0 → 0.36.1

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.
@@ -1,4 +1,4 @@
1
- import { BaseSymbolType, InterpreterError, LexerError, ParserError, Lexer, Parser, Config, Interpreter, ColorSymbol, ColorManager, isArray, isObject, NumberWithUnitSymbol } from './chunk-NGG6MBER.js';
1
+ import { BaseSymbolType, InterpreterError, LexerError, ParserError, Lexer, Parser, Config, Interpreter, ColorSymbol, ColorManager, isArray, isObject, NumberWithUnitSymbol } from './chunk-HHCPY4WI.js';
2
2
  import './chunk-AXH5N7KV.js';
3
3
  import fs from 'fs';
4
4
  import path from 'path';
@@ -568,6 +568,9 @@ var _Lexer = class _Lexer {
568
568
  }
569
569
  while (chunkLMGHS2NP_cjs.isNumber2(this.currentChar) || this.currentChar === ".") {
570
570
  if (this.currentChar === ".") {
571
+ if (!chunkLMGHS2NP_cjs.isNumber2(this.peek())) {
572
+ break;
573
+ }
571
574
  if (hasDecimalPoint) {
572
575
  this.error("LEXER_MULTIPLE_DECIMAL_POINTS" /* MULTIPLE_DECIMAL_POINTS */, {
573
576
  value: result + this.currentChar
@@ -1645,11 +1648,12 @@ ${contextText}`;
1645
1648
  return new ElementWithUnitNode(node, formatToken.value);
1646
1649
  }
1647
1650
  number() {
1648
- const node = new NumNode(this.currentToken);
1651
+ let node = new NumNode(this.currentToken);
1649
1652
  this.eat("NUMBER" /* NUMBER */);
1650
1653
  if (this.currentToken.type === "FORMAT" /* FORMAT */) {
1651
1654
  return this.format(node);
1652
1655
  }
1656
+ node = this.attributeAccess(node);
1653
1657
  return node;
1654
1658
  }
1655
1659
  // factor : PLUS factor
@@ -7303,5 +7307,5 @@ exports.tokenizeTolerantly = tokenizeTolerantly;
7303
7307
  exports.validateTokenName = validateTokenName;
7304
7308
  exports.validateTokenPath = validateTokenPath;
7305
7309
  exports.walkAST = walkAST;
7306
- //# sourceMappingURL=chunk-ZURBS3EE.cjs.map
7307
- //# sourceMappingURL=chunk-ZURBS3EE.cjs.map
7310
+ //# sourceMappingURL=chunk-IQ5YGWZK.cjs.map
7311
+ //# sourceMappingURL=chunk-IQ5YGWZK.cjs.map