aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include
diff options
context:
space:
mode:
authorIan Henry <ianthehenry@gmail.com>2023-12-04 23:34:40 -0800
committerIan Henry <ianthehenry@gmail.com>2023-12-28 22:15:54 -0800
commitea750863008affed0daa8521f1d1915f81616866 (patch)
treee820667b379b928e6023e4e930faa45ea814ff05 /src/include
parentMerge pull request #1334 from iacore/fix-0 (diff)
add a new (sub) PEG special
(sub) will first match one pattern, then match another pattern against the text that the first pattern advanced over.
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 5724af2b..4e486145 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -2140,7 +2140,8 @@ typedef enum {
RULE_LINE, /* [tag] */
RULE_COLUMN, /* [tag] */
RULE_UNREF, /* [rule, tag] */
- RULE_CAPTURE_NUM /* [rule, tag] */
+ RULE_CAPTURE_NUM, /* [rule, tag] */
+ RULE_SUB /* [rule, rule] */
} JanetPegOpcod;
typedef struct {