diff options
Diffstat (limited to 'src/sam_edit.zig')
| -rw-r--r-- | src/sam_edit.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sam_edit.zig b/src/sam_edit.zig index 173a559b..a2db0abc 100644 --- a/src/sam_edit.zig +++ b/src/sam_edit.zig @@ -30,12 +30,6 @@ const regexp = @import("regexp.zig"); const addr_lang = @import("ninep/addr.zig"); const modal = @import("modal.zig"); -/// The next place after `p` a search may start: a rune on, and past the -/// text's end once there, which ends a loop over `p <= end`. -fn stepRune(text: []const u8, p: usize) usize { - return if (p >= text.len) p + 1 else modal.nextRune(text, p); -} - pub const Range = addr_lang.Range; /// A change to the text as it was: `job`, when set, is a `<` or `|` whose @@ -564,6 +558,12 @@ const Parser = struct { const e_noname = "no file name given"; +/// The next place after `p` a search may start: a rune on, and past the +/// text's end once there, which ends a loop over `p <= end`. +fn stepRune(text: []const u8, p: usize) usize { + return if (p >= text.len) p + 1 else modal.nextRune(text, p); +} + const Exec = struct { arena: std.mem.Allocator, why: *Why, |
