Commit Graph

522 Commits

Author SHA1 Message Date
01410bd09d Removed unnecessary code 2021-07-17 16:53:13 -07:00
debd5d886c Simplification 2021-07-17 16:47:05 -07:00
9f2d9d86de Improved optimization for finding next match 2021-07-17 16:01:18 -07:00
f2e47bb95f Bugfix for backrefs 2021-07-17 15:31:18 -07:00
85f6cb8e76 Performance optimization for common case where pattern starts with
string
2021-07-17 15:25:24 -07:00
ad85fb1da5 Added support for multiple escape sequences: \n,r,t 2021-07-17 14:19:55 -07:00
378e94090f Factored debug visualization into its own file 2021-07-17 14:05:10 -07:00
0f05961578 Simplified backrefs by only doing direct substring matching instead of
accounting for replacement strings.
2021-07-17 13:54:26 -07:00
26b683ca74 Bugfix for NULL bytes in text 2021-07-15 21:19:34 -07:00
7cd6117138 Better cross-platform compatibility 2021-07-06 11:45:40 -07:00
416484a636 Switched /etc/xdg/bp -> /etc/bp 2021-07-03 21:43:56 -07:00
2439a87833 Remove some word chars 2021-07-03 21:41:43 -07:00
c89fd1db42 Added lots of extra compiler flags 2021-05-31 13:25:38 -07:00
a67a257044 Fix compiler warning nits 2021-05-31 12:56:49 -07:00
da6c8857d6 Moved utf8 code into a C file, fixed some potential null deref issues 2021-05-31 12:38:42 -07:00
0443fbb063 Added warning flag for null derefs 2021-05-31 10:32:48 -07:00
aa1faea83c Added pandoc lua filter to make code literals work better with manpages. 2021-05-23 15:21:46 -07:00
315aedc7cb Minor splint fixes 2021-05-22 22:02:22 -07:00
55e57050c4 Slight tweak 2021-05-22 13:28:33 -07:00
c87a3add5b Fix for keyword check 2021-05-22 13:25:14 -07:00
9c8baf4434 Fixes for replacements with or without patterns/replacement strings 2021-05-22 13:23:10 -07:00
cd719c1477 Tweaks to line-specific search 2021-05-21 00:22:05 -07:00
219f62ed3f Renamed file_t.contents -> file_t.start, added file_t.memory for
canonical tracking of memory for mmap, simplified json printing,
and added support for initiating searches on a specific line (and/or
column).
2021-05-20 18:31:28 -07:00
cc6e25a06f Fix for broken escapes 2021-05-20 18:30:30 -07:00
78695e2aee Fixed backslash escape for single utf8 chars. 2021-05-20 17:39:27 -07:00
8df68fa869 Updated build 2021-05-20 17:26:38 -07:00
f8b655dc4d Updated comment 2021-05-20 17:21:06 -07:00
ba2781d1bc Updated docs 2021-05-20 17:19:46 -07:00
be198489e0 Cleanup, perf fixes, and setting an endpoint for backtrack matches (at
the current position).
2021-05-20 16:59:42 -07:00
ec1a3e0835 Fixes for char sets/ranges and cleanups 2021-05-20 16:46:14 -07:00
cd30e89042 Use local grammars instead of installed 2021-05-20 16:24:41 -07:00
8e712a83d4 Bugfixes 2021-05-20 16:21:33 -07:00
0a1493dffa Cleanup/fix 2021-05-20 15:41:42 -07:00
9577e0dd8a Better codepoint functionality 2021-05-20 15:28:08 -07:00
655ed12128 Mostly working version 2021-05-20 15:27:24 -07:00
a0028e9605 Updated doc 2021-05-20 13:05:47 -07:00
8fcf6261bd Print errors to stderr instead of stdout 2021-05-20 13:05:15 -07:00
13e1b20f43 Removed escape sequences from string pats (use bp 'line\nl;line' or
`bp 'line\(nl)line'` or `bp 'line\\nline'` instead)
2021-05-20 13:00:52 -07:00
85dba49b54 Fixed up JSON output 2021-05-20 01:00:10 -07:00
7ac9df98dc Rebuilt 2021-05-20 00:47:13 -07:00
27f6c391c8 Added errors doc 2021-05-20 00:46:53 -07:00
d9f0a92839 Added (!) syntax for errors with proper opcode support 2021-05-20 00:33:11 -07:00
355e06a58e Added ~ and !~ operators as replacements for == and != 2021-05-19 23:41:57 -07:00
3f0ab96f7f Fix for binary file detection bug. 2021-05-19 22:16:39 -07:00
cd6b5925f1 Make the manpage before installing 2021-05-19 22:03:34 -07:00
f824d3f3e2 Added markdown manpage, which converts to roff using pandoc. 2021-05-19 22:02:45 -07:00
5d5817c2a3 Fancier string escape sequences and a bit of cleanup. 2021-05-19 21:58:54 -07:00
6ff7a67530 When printing with zero context, put each match on its own line 2021-05-19 21:12:41 -07:00
10532ca614 Cleanup 2021-05-18 10:10:35 -07:00
48cb65d2b5 True -> 1 2021-05-18 10:07:23 -07:00