aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include
diff options
context:
space:
mode:
authorIan Henry <ianthehenry@gmail.com>2023-12-27 08:26:50 -0800
committerIan Henry <ianthehenry@gmail.com>2024-01-05 22:02:52 -0800
commit61f38fab37f8e01c43df9e65cbbb6b357e888c8d (patch)
treeb065ffc6e9b1a2e5532b037a4d86a5445a8ff673 /src/include
parentMerge pull request #1344 from ianthehenry/peg-sub-special (diff)
add a new (split) PEG special
This works similarly to string/split, but the separator is a PEG.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/janet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/janet.h b/src/include/janet.h
index 4e486145..1cfb970f 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -2141,7 +2141,8 @@ typedef enum {
RULE_COLUMN, /* [tag] */
RULE_UNREF, /* [rule, tag] */
RULE_CAPTURE_NUM, /* [rule, tag] */
- RULE_SUB /* [rule, rule] */
+ RULE_SUB, /* [rule, rule] */
+ RULE_SPLIT /* [rule, rule] */
} JanetPegOpcod;
typedef struct {