From 075b94682e3feeb37ce3069c0922632c908eeb8b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 13 Jul 2025 21:02:35 -0300 Subject: src/paca.mjs ({escaping,range}StateStep): Add leading underscore to ignored args --- src/paca.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paca.mjs b/src/paca.mjs index 74e24bc..a8cc0f4 100644 --- a/src/paca.mjs +++ b/src/paca.mjs @@ -18,7 +18,7 @@ const numFromDigits = digits => ? -1 : Number(digits.join("")); -const escapingStateStep = ({ out, state, context }, char, index, next) => ({ +const escapingStateStep = ({ out, _state, context }, char, _index, next) => ({ out: out.concat( char, next !== undefined ? {operator: "concat"} : [], @@ -27,7 +27,7 @@ const escapingStateStep = ({ out, state, context }, char, index, next) => ({ context, }); -const rangeStateStep = ({ out, state, context }, char, index, next) => { +const rangeStateStep = ({ out, state, context }, char, _index, _next) => { if (char === "}") { if (context.where !== "to") { return reduced({ -- cgit v1.2.3