diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/paca.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/paca.mjs b/src/paca.mjs index a8cc0f4..db6aa86 100644 --- a/src/paca.mjs +++ b/src/paca.mjs @@ -52,12 +52,13 @@ const rangeStateStep = ({ out, state, context }, char, _index, _next) => { ), }); } + return { out: out.concat({ operator: "range", from, to, - }), + }), state: ConcatStep.ACCEPTING, context: null, }; @@ -91,8 +92,7 @@ const rangeStateStep = ({ out, state, context }, char, _index, _next) => { state, context, error: new SyntaxError( - "bad char in range expression: " + - char, + "bad char in range expression: " + char, ), }); } |
