@bablr/boot 0.11.0 → 0.11.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.
@@ -101,6 +101,14 @@ export const grammar = class CSTMLMiniparserGrammar {
101
101
  }
102
102
 
103
103
  TreeNode(p, props) {
104
+ if (p.match(/['"]/y)) {
105
+ do {
106
+ p.eatProduction('LiteralTag', { path: 'children[]' });
107
+ p.eatMatchTrivia(_);
108
+ } while (p.match(/['"]/y));
109
+ return;
110
+ }
111
+
104
112
  let open = p.eatProduction('OpenNodeTag', { path: 'openTag', noInterpolate: true }, props);
105
113
 
106
114
  p.eatMatchTrivia(_);
@@ -191,12 +199,6 @@ export const grammar = class CSTMLMiniparserGrammar {
191
199
  }
192
200
 
193
201
  OpenNodeTag(p) {
194
- if (p.match(/['"]/y)) {
195
- p.eatProduction('NodeFlags', { path: 'flags' }, { token: true });
196
- p.eatProduction('JSON:String', { path: 'literalValue' });
197
- return;
198
- }
199
-
200
202
  p.eat('<', PN, { path: 'openToken' });
201
203
 
202
204
  if (!p.atExpression) {
@@ -123,6 +123,15 @@ export const grammar = class SpamexMiniparserGrammar {
123
123
  }
124
124
 
125
125
  TreeNodeMatcher(p) {
126
+ if (p.match(/['"/]/y)) {
127
+ do {
128
+ p.eatProduction('StringMatcher', { path: 'children[]' });
129
+ p.eatMatchTrivia(_);
130
+ } while (p.match(/['"/]/y));
131
+
132
+ return;
133
+ }
134
+
126
135
  if (p.match(/[a-zA-Z.#@]/y) || p.atExpression) {
127
136
  p.eatProduction('PropertyMatcher', { path: 'children[]', noInterpolate: true });
128
137
  return;
@@ -148,13 +157,6 @@ export const grammar = class SpamexMiniparserGrammar {
148
157
  }
149
158
 
150
159
  TreeNodeMatcherOpen(p) {
151
- if (p.match(/['"/]/y)) {
152
- p.eatProduction('CSTML:NodeFlags', { path: 'flags', token: true });
153
- p.eatProduction('StringMatcher', { path: 'literalValue' });
154
-
155
- return { attrs: { selfClosing: true } };
156
- }
157
-
158
160
  p.eat('<', PN, { path: 'openToken' });
159
161
 
160
162
  if (!p.atExpression) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bablr/boot",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Compile-time tools for bootstrapping BABLR VM",
5
5
  "engines": {
6
6
  "node": ">=12.0.0"
@@ -20,8 +20,8 @@
20
20
  ],
21
21
  "sideEffects": false,
22
22
  "dependencies": {
23
- "@bablr/agast-helpers": "0.10.0",
24
- "@bablr/agast-vm-helpers": "0.10.0",
23
+ "@bablr/agast-helpers": "0.10.2",
24
+ "@bablr/agast-vm-helpers": "0.10.2",
25
25
  "@iter-tools/imm-stack": "1.2.0",
26
26
  "escape-string-regexp": "5.0.0",
27
27
  "iter-tools-es": "^7.0.2"