summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/paca.mjs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/paca.mjs b/src/paca.mjs
index c1bead1..6843c20 100644
--- a/src/paca.mjs
+++ b/src/paca.mjs
@@ -121,6 +121,18 @@ const TRANSITION_FNS = {
where: "from",
},
}),
+ "[": ({ out, _state, _context }, _char, _index, _next) => ({
+ out,
+ state: ConcatStep.CLASS,
+ context: {
+ set: [],
+ range: {
+ from: [],
+ to: [],
+ where: "from",
+ },
+ },
+ }),
};
const stateTransitionOperators = new Set(Object.keys(TRANSITION_FNS));