From 32321e7a39966e901c25c955ab392fc46c6088a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 13 Jan 2017 19:49:46 +0100 Subject: test/sam: add test for new grouping semantics The more idomatic ,x/[a-zA-Z]+/{ g/Emacs/ v/....../ c/vi/ g/vi/ v/.../ c/Emacs/ } does not seem to work on the sam version from 9base as shipped by Ubuntu 12.04 LTS and used in the Travis environment. --- sam/examples/swap-words.cmd | 4 ++++ sam/examples/swap-words.in | 1 + 2 files changed, 5 insertions(+) create mode 100644 sam/examples/swap-words.cmd create mode 100644 sam/examples/swap-words.in (limited to 'sam/examples') diff --git a/sam/examples/swap-words.cmd b/sam/examples/swap-words.cmd new file mode 100644 index 0000000..43bbde6 --- /dev/null +++ b/sam/examples/swap-words.cmd @@ -0,0 +1,4 @@ +,x/(Emacs|vi)/{ + g/Emacs/ v/....../ c/vi/ + g/vi/ v/.../ c/Emacs/ +} diff --git a/sam/examples/swap-words.in b/sam/examples/swap-words.in new file mode 100644 index 0000000..bfdc4fc --- /dev/null +++ b/sam/examples/swap-words.in @@ -0,0 +1 @@ +Emacs is better than vi. \ No newline at end of file -- cgit v1.2.3