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