clarity-pattern-parser 11.0.19 → 11.0.20
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.browser.js +3 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/grammar/Grammar.ts +2 -2
- package/src/patterns/Expression.ts +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -3042,7 +3042,7 @@
|
|
|
3042
3042
|
if (pattern == null) {
|
|
3043
3043
|
return false;
|
|
3044
3044
|
}
|
|
3045
|
-
return pattern.
|
|
3045
|
+
return pattern.name === this.name;
|
|
3046
3046
|
}
|
|
3047
3047
|
parse(cursor) {
|
|
3048
3048
|
this._firstIndex = cursor.index;
|
|
@@ -3577,8 +3577,8 @@
|
|
|
3577
3577
|
const isLongEnough = pattern.children.length >= 2;
|
|
3578
3578
|
return pattern.type === "reference" ||
|
|
3579
3579
|
(pattern.type === "sequence" && isLongEnough &&
|
|
3580
|
-
(firstChild.
|
|
3581
|
-
(lastChild.
|
|
3580
|
+
(firstChild.name === name) ||
|
|
3581
|
+
(lastChild.name === name));
|
|
3582
3582
|
}
|
|
3583
3583
|
_buildPattern(node) {
|
|
3584
3584
|
const type = node.name;
|