vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit eb1398de482ec1c4ac90cd6b0a4e4baba3e5aa7a
parent ecfb057610117d7041023b9be456bb91d5d81a20
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Mon, 25 Jan 2021 13:31:42 +0100

test/sam: add tests for empty matches at the end of a range

Diffstat:
Asam/commands/loop-empty-match1.cmd | 4++++
Asam/commands/loop-empty-match1.in | 1+
Asam/commands/loop-empty-match2.cmd | 4++++
Asam/commands/loop-empty-match2.in | 1+
Asam/commands/loop-empty-match3.cmd | 4++++
Asam/commands/loop-empty-match3.in | 1+
Asam/commands/loop-empty-match4.cmd | 4++++
Asam/commands/loop-empty-match4.in | 1+
8 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/sam/commands/loop-empty-match1.cmd b/sam/commands/loop-empty-match1.cmd @@ -0,0 +1,4 @@ +,x/svissvis/ y/s/ { + i/[/ + a/]/ +} diff --git a/sam/commands/loop-empty-match1.in b/sam/commands/loop-empty-match1.in @@ -0,0 +1 @@ +visvissvisvis diff --git a/sam/commands/loop-empty-match2.cmd b/sam/commands/loop-empty-match2.cmd @@ -0,0 +1,4 @@ +,x/svissvis/ x/[^s]*/ { + i/[/ + a/]/ +} diff --git a/sam/commands/loop-empty-match2.in b/sam/commands/loop-empty-match2.in @@ -0,0 +1 @@ +visvissvisvis diff --git a/sam/commands/loop-empty-match3.cmd b/sam/commands/loop-empty-match3.cmd @@ -0,0 +1,4 @@ +,x/svissvis/ y/[a-z]/ { + i/[/ + a/]/ +} diff --git a/sam/commands/loop-empty-match3.in b/sam/commands/loop-empty-match3.in @@ -0,0 +1 @@ +visvissvisvis diff --git a/sam/commands/loop-empty-match4.cmd b/sam/commands/loop-empty-match4.cmd @@ -0,0 +1,4 @@ +,x/svissvis/ x/[^a-z]/ { + i/[/ + a/]/ +} diff --git a/sam/commands/loop-empty-match4.in b/sam/commands/loop-empty-match4.in @@ -0,0 +1 @@ +visvissvisvis