We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e621b2a commit 23e7e23Copy full SHA for 23e7e23
lib/index.js
@@ -73,7 +73,7 @@ let counter = 0;
73
* @param {string} text
74
*/
75
function format(e, source, text) {
76
- const er = /** @type {import('peggy').parser.PeggySyntaxError} */(e);
+ const er = /** @type {import('peggy').parser.SyntaxError} */(e);
77
if (typeof er?.format === "function") {
78
er.message = er.format([{ source, text }]);
79
}
test/minimal.js
@@ -1,4 +1,4 @@
1
-// @generated by Peggy 5.0.0.
+// @generated by Peggy 5.0.3.
2
//
3
// https://peggyjs.org/
4
0 commit comments