parseman 0.51.0 → 0.51.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.
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.js +7 -3
- package/dist/plugin/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/compiler/ir-serialize.ts +7 -3
- package/src/version.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -17279,8 +17279,12 @@ ${outerDecls.map((d) => " " + d).join("\n")}
|
|
|
17279
17279
|
const kid = (x) => this.ref(x, frames);
|
|
17280
17280
|
const bal = balancedOf(c);
|
|
17281
17281
|
if (bal) {
|
|
17282
|
-
const
|
|
17283
|
-
|
|
17282
|
+
const options = [
|
|
17283
|
+
...bal.ownSkip.length === 0 ? [] : [`skip: [${bal.ownSkip.map(kid).join(", ")}]`],
|
|
17284
|
+
...bal.strict ? ["strict: true"] : []
|
|
17285
|
+
];
|
|
17286
|
+
const optionsArg = options.length === 0 ? "" : `, { ${options.join(", ")} }`;
|
|
17287
|
+
return `balanced(${JSON.stringify(bal.open)}, ${JSON.stringify(bal.close)}${optionsArg})`;
|
|
17284
17288
|
}
|
|
17285
17289
|
switch (def.tag) {
|
|
17286
17290
|
case "lazy": {
|
|
@@ -17542,7 +17546,7 @@ function compileRuleMap(ruleMap, opts = {}) {
|
|
|
17542
17546
|
}
|
|
17543
17547
|
|
|
17544
17548
|
// src/version.ts
|
|
17545
|
-
var PARSEMAN_VERSION = "0.51.
|
|
17549
|
+
var PARSEMAN_VERSION = "0.51.1";
|
|
17546
17550
|
|
|
17547
17551
|
// src/compiler/compile-linkable-table.ts
|
|
17548
17552
|
function isLocal(rule) {
|