@optique/core 1.0.0-dev.1693 → 1.0.0-dev.1695
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/constructs.cjs +1 -1
- package/dist/constructs.js +1 -1
- package/package.json +1 -1
package/dist/constructs.cjs
CHANGED
|
@@ -571,7 +571,7 @@ function createExclusiveComplete(parsers, options, noMatchContext, mode) {
|
|
|
571
571
|
if (candidateIndex < 0) candidateIndex = i$1;
|
|
572
572
|
if (candidateCount > 1) break;
|
|
573
573
|
}
|
|
574
|
-
if (candidateCount === 1 && candidateIndex >= 0 && exec?.phase !== "parse" && exec?.phase !== "suggest") {
|
|
574
|
+
if (candidateCount === 1 && candidateIndex >= 0 && (parsers[candidateIndex].$mode === "sync" || exec?.phase !== "parse" && exec?.phase !== "suggest")) {
|
|
575
575
|
const p = parsers[candidateIndex];
|
|
576
576
|
const parseResult = await p.parse({
|
|
577
577
|
...emptyCtx,
|
package/dist/constructs.js
CHANGED
|
@@ -571,7 +571,7 @@ function createExclusiveComplete(parsers, options, noMatchContext, mode) {
|
|
|
571
571
|
if (candidateIndex < 0) candidateIndex = i$1;
|
|
572
572
|
if (candidateCount > 1) break;
|
|
573
573
|
}
|
|
574
|
-
if (candidateCount === 1 && candidateIndex >= 0 && exec?.phase !== "parse" && exec?.phase !== "suggest") {
|
|
574
|
+
if (candidateCount === 1 && candidateIndex >= 0 && (parsers[candidateIndex].$mode === "sync" || exec?.phase !== "parse" && exec?.phase !== "suggest")) {
|
|
575
575
|
const p = parsers[candidateIndex];
|
|
576
576
|
const parseResult = await p.parse({
|
|
577
577
|
...emptyCtx,
|