diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 11:12:10 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:14 -0300 |
| commit | 5cf50930dee214fb641bb95bbf8639b8f76930d9 (patch) | |
| tree | fe0855346e0c8d2b7e656cfa2cbc4a1abd9b9311 /docs/fs.md | |
| parent | 3d8fc0733cd2d2c8a6209514aa1158cbd713be25 (diff) | |
| download | pardes-5cf50930dee214fb641bb95bbf8639b8f76930d9.tar.gz pardes-5cf50930dee214fb641bb95bbf8639b8f76930d9.zip | |
Normal mode's s and S search as addr does, through one shared regexp.zig
The sam-style calling convention for mvzr (a line per haystack, . made
[^\\n] only when a pattern names \\n) lived in addr.zig; normal mode's s
and S called mvzr over the raw selection, where ^ meant the selection's
start and . crossed lines. src/regexp.zig now holds the one Regex
(compile, find) both call, and fs.zig and pardes.zig drop an unused mvzr
import. hxdiff and hxparity stay at their known 17 and 6 mismatches, none
of them regex cases.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs/fs.md')
| -rw-r--r-- | docs/fs.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -274,6 +274,8 @@ takes the longest (`/gam|gamma/` finds `gam`); in a search begun in the middle of a line, `^` inside an alternation can match there; and in a pattern that spans lines, `^`, `$` and `[^...]` keep mvzr's own meaning. pardes has no regex engine of its own on purpose; these are its limits. +Normal mode's `s` and `S` search a selection the same way (src/regexp.zig +is the one place both call), so `^` there also means a line's start. An address that does not evaluate fails the write with why: `bad address syntax`, `no match for regexp`, `address out of range` or `bad regular |
