|
ba6ee18ded
|
Added strict mode for upto operator: ..=Abc
|
2021-07-30 19:24:35 -07:00 |
|
|
18e8a131f5
|
xfree() -> delete()
|
2021-07-30 15:06:04 -07:00 |
|
|
3445982b16
|
Ergonomic improvement: xcalloc -> new(), xrealloc -> grow()
|
2021-07-30 14:44:00 -07:00 |
|
|
ad640caac6
|
Removing DEBUG_HEAP, just do a full cleanup all the time
|
2021-07-30 13:38:39 -07:00 |
|
|
f3954ac151
|
Linked list management cleanup
|
2021-07-30 13:36:29 -07:00 |
|
|
253bb1dbe1
|
Temporary fix for memory bug
|
2021-07-29 13:59:50 -07:00 |
|
|
bc813df3d7
|
Tweaks and optimizations
|
2021-07-29 12:45:37 -07:00 |
|
|
db969f34a9
|
Micro optimization (probably not necessary)
|
2021-07-27 00:16:15 -07:00 |
|
|
a5a456fab3
|
Caching micro-optimizations
|
2021-07-27 00:09:04 -07:00 |
|
|
f86f75d782
|
More caching performance tuning
|
2021-07-26 23:56:04 -07:00 |
|
|
afc07fb735
|
Performance improvements for caching
|
2021-07-26 23:29:51 -07:00 |
|
|
f23b9bc637
|
Introduced cache to greatly speed up many use cases
|
2021-07-26 20:59:45 -07:00 |
|
|
711fe47a7f
|
Overhaul of word boundaries/edges. Now they use \b, which is implemented
in C, and the C code understands UTF8 id chars.
|
2021-07-19 19:40:43 -07:00 |
|
|
62e7d654bd
|
Disable optimization when skip is non-null
|
2021-07-19 13:33:51 -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 |
|
|
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 |
|
|
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 |
|
|
9c8baf4434
|
Fixes for replacements with or without patterns/replacement strings
|
2021-05-22 13:23:10 -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 |
|
|
be198489e0
|
Cleanup, perf fixes, and setting an endpoint for backtrack matches (at
the current position).
|
2021-05-20 16:59:42 -07:00 |
|
|
8e712a83d4
|
Bugfixes
|
2021-05-20 16:21:33 -07:00 |
|
|
655ed12128
|
Mostly working version
|
2021-05-20 15:27:24 -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 |
|
|
a93220972f
|
Overhaul of |-word boundaries (| is deprecated), performance
improvements for repeating matches, tweaks to the logic of word vs. id
|
2021-05-11 12:38:58 -07:00 |
|
|
3359a804c8
|
Converted ^/^^/$/$$ into pattern types instead of builtin definitions
|
2021-05-11 11:39:42 -07:00 |
|
|
f1499c9a63
|
Fix for being unable to match patterns on zero-length files (or at the
end of a file)
|
2021-03-15 18:29:04 -07:00 |
|
|
889fd70ec7
|
Cleaned up some error code
|
2021-01-26 17:58:46 -08:00 |
|
|
de0fec8fcb
|
Removed check() and replaced with err()/errx()
|
2021-01-26 17:54:23 -08:00 |
|
|
c46a8227d0
|
Added --skip flag for skipping over patterns
|
2021-01-20 16:12:46 -08:00 |
|
|
b4c8a33a0c
|
Tweaked .. syntax to make it more flexible (now: .. % skip pat )
|
2021-01-20 15:23:57 -08:00 |
|
|
4b3579c968
|
More bools, because why not
|
2021-01-18 11:39:20 -08:00 |
|
|
0b0e99bfac
|
A few more pedantic cleanups
|
2021-01-18 11:28:39 -08:00 |
|
|
e98574570e
|
More static analysis cleanup
|
2021-01-18 11:15:53 -08:00 |
|
|
46f1747947
|
More static analyzer cleanup
|
2021-01-18 10:47:20 -08:00 |
|
|
eece8c8556
|
More static analyzer cleanup, including switching to use bools where
appropriate and EXIT_SUCESS/EXIT_FAILURE
|
2021-01-18 10:30:17 -08:00 |
|
|
7f0c3804dc
|
Checking more return values (per static analyzer)
|
2021-01-18 09:52:35 -08:00 |
|
|
3ededef53d
|
Static analysis part 1
|
2021-01-18 09:15:25 -08:00 |
|
|
c577769a89
|
Updated REF and CAPTURE types to store direct pointers to names (with a
len size_t) instead of allocating memory.
|
2021-01-17 23:28:19 -08:00 |
|
|
25346aa214
|
Updated the behavior of !=/== to only consider exact, full-text matches
instead of prefix matches
|
2021-01-17 21:39:56 -08:00 |
|
|
3cc645f2d0
|
Improved argument parsing and added support for prompting user for a
pattern if none is provided
|
2021-01-17 13:33:10 -08:00 |
|
|
3f6e7c2beb
|
Renamed VM_ to BP_
|
2021-01-16 10:29:09 -08:00 |
|
|
a2f30332cc
|
Sorting imports
|
2021-01-15 19:44:16 -08:00 |
|
|
3d3a73e18c
|
Moved pattern code into the right file
|
2021-01-15 19:39:28 -08:00 |
|