@optique/core 1.0.0-dev.1730 → 1.0.0-dev.1734
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/dist/parser.d.cts +7 -4
- package/dist/parser.d.ts +7 -4
- package/package.json +1 -1
package/dist/constructs.cjs
CHANGED
|
@@ -4450,7 +4450,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4450
4450
|
};
|
|
4451
4451
|
} else if (defaultBranch === void 0) return deferredDiscriminatorResult;
|
|
4452
4452
|
}
|
|
4453
|
-
if (
|
|
4453
|
+
if (exec?.phase === "parse" || exec?.phase === "suggest") return {
|
|
4454
4454
|
success: true,
|
|
4455
4455
|
value: [void 0, void 0]
|
|
4456
4456
|
};
|
package/dist/constructs.js
CHANGED
|
@@ -4450,7 +4450,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4450
4450
|
};
|
|
4451
4451
|
} else if (defaultBranch === void 0) return deferredDiscriminatorResult;
|
|
4452
4452
|
}
|
|
4453
|
-
if (
|
|
4453
|
+
if (exec?.phase === "parse" || exec?.phase === "suggest") return {
|
|
4454
4454
|
success: true,
|
|
4455
4455
|
value: [void 0, void 0]
|
|
4456
4456
|
};
|
package/dist/parser.d.cts
CHANGED
|
@@ -571,11 +571,14 @@ type ParserResult<TState> = {
|
|
|
571
571
|
* marker stays set across subsequent parse calls until
|
|
572
572
|
* `complete()` verifies the speculative selection.
|
|
573
573
|
*
|
|
574
|
-
* Outer combinators
|
|
575
|
-
*
|
|
576
|
-
* branch
|
|
574
|
+
* Outer combinators should not treat provisional successes as
|
|
575
|
+
* definitive. For example, {@link or} should still allow a
|
|
576
|
+
* definitive branch to take priority, and a definitive
|
|
577
577
|
* zero-consuming fallback must not be displaced by a provisional
|
|
578
|
-
* consuming hit.
|
|
578
|
+
* consuming hit. {@link longestMatch} may still prefer a longer
|
|
579
|
+
* provisional match over a shorter definitive one; when match
|
|
580
|
+
* lengths are equal, definitive results take priority over
|
|
581
|
+
* provisional ones.
|
|
579
582
|
*
|
|
580
583
|
* @since 1.0.0
|
|
581
584
|
*/
|
package/dist/parser.d.ts
CHANGED
|
@@ -571,11 +571,14 @@ type ParserResult<TState> = {
|
|
|
571
571
|
* marker stays set across subsequent parse calls until
|
|
572
572
|
* `complete()` verifies the speculative selection.
|
|
573
573
|
*
|
|
574
|
-
* Outer combinators
|
|
575
|
-
*
|
|
576
|
-
* branch
|
|
574
|
+
* Outer combinators should not treat provisional successes as
|
|
575
|
+
* definitive. For example, {@link or} should still allow a
|
|
576
|
+
* definitive branch to take priority, and a definitive
|
|
577
577
|
* zero-consuming fallback must not be displaced by a provisional
|
|
578
|
-
* consuming hit.
|
|
578
|
+
* consuming hit. {@link longestMatch} may still prefer a longer
|
|
579
|
+
* provisional match over a shorter definitive one; when match
|
|
580
|
+
* lengths are equal, definitive results take priority over
|
|
581
|
+
* provisional ones.
|
|
579
582
|
*
|
|
580
583
|
* @since 1.0.0
|
|
581
584
|
*/
|