aboutsummaryrefslogtreecommitdiff
path: root/tests/24-backref.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/24-backref.sh')
-rw-r--r--tests/24-backref.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/24-backref.sh b/tests/24-backref.sh
new file mode 100644
index 0000000..01a6280
--- /dev/null
+++ b/tests/24-backref.sh
@@ -0,0 +1,3 @@
+# With @-capturing, you can reference previous captures
+# Example: bp -p '@first=`a-z .. first' matches "aba" and "xyzx", but not "abc"
+bp -p '@first=+Abc _ +Abc _ first'