@bablr/boot 0.2.0 → 0.2.2
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/lib/index.mjs +3 -0
- package/lib/languages/spamex.js +2 -2
- package/package.json +2 -1
package/lib/index.mjs
ADDED
package/lib/languages/spamex.js
CHANGED
|
@@ -41,7 +41,7 @@ const grammar = class SpamexMiniparserGrammar {
|
|
|
41
41
|
p.eat('<', PN, { path: 'open', startSpan: 'Tag', balanced: '>' });
|
|
42
42
|
|
|
43
43
|
let tr = p.eatMatch('#', PN, { path: 'triviaFlag' });
|
|
44
|
-
|
|
44
|
+
p.eatMatch('*', PN, { path: 'tokenFlag' });
|
|
45
45
|
let esc = p.eatMatch('@', PN, { path: 'escapeFlag' });
|
|
46
46
|
let exp = p.eatMatch('+', PN, { path: 'expressionFlag' });
|
|
47
47
|
|
|
@@ -57,7 +57,7 @@ const grammar = class SpamexMiniparserGrammar {
|
|
|
57
57
|
|
|
58
58
|
let sp = p.eatMatchTrivia(_);
|
|
59
59
|
|
|
60
|
-
if (
|
|
60
|
+
if (sp && (p.match(/['"/]/y) || p.atExpression)) {
|
|
61
61
|
p.eatProduction('StringMatcher', { path: 'intrinsicValue' });
|
|
62
62
|
|
|
63
63
|
sp = p.eatMatchTrivia(_);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bablr/boot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Compile-time tools for bootstrapping BABLR VM",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=12.0.0"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"lib/**/*.js",
|
|
17
|
+
"lib/**/*.mjs",
|
|
17
18
|
"shorthand.macro.js"
|
|
18
19
|
],
|
|
19
20
|
"sideEffects": false,
|