bobe 0.0.65 → 0.0.67

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.
@@ -1123,7 +1123,7 @@ class Compiler {
1123
1123
  if (value === 'for') {
1124
1124
  return this.parseLoopNode();
1125
1125
  }
1126
- if (hookType) {
1126
+ if (hookType || this.tokenizer.token.type & TokenType.String) {
1127
1127
  return this.parseComponentNode();
1128
1128
  }
1129
1129
  return this.parseElementNode();
@@ -1693,6 +1693,9 @@ class Interpreter {
1693
1693
  } else {
1694
1694
  return this.dynamicDeclaration(data, value, ctx);
1695
1695
  }
1696
+ } else if (this.tokenizer.token.type === TokenType.String) {
1697
+ _node = this.createNode('text');
1698
+ this.setProp(_node, 'text', String(value));
1696
1699
  } else {
1697
1700
  _node = this.createNode(value);
1698
1701
  }