diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-13 19:49:46 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-13 19:49:46 +0100 |
| commit | 32321e7a39966e901c25c955ab392fc46c6088a9 (patch) | |
| tree | 11bedbb8ecbc39b219143364dd28826d978311d6 | |
| parent | 0a087955ce03eeddda06f1a3ad3c3e5e65cc16e9 (diff) | |
| download | vis-32321e7a39966e901c25c955ab392fc46c6088a9.tar.gz vis-32321e7a39966e901c25c955ab392fc46c6088a9.tar.xz | |
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.
| -rw-r--r-- | sam/examples/swap-words.cmd | 4 | ||||
| -rw-r--r-- | sam/examples/swap-words.in | 1 |
2 files changed, 5 insertions, 0 deletions
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 |
