aboutsummaryrefslogtreecommitdiff
path: root/bp.c
AgeCommit message (Collapse)Author
2024-06-23Deprecate JSON output formatmasterBruce Hill
2024-06-23Add special case support for parsing `bp "->foo"` as a pattern insteadBruce Hill
of an invalid flag
2024-05-29Rename match_t -> bp_match_tBruce Hill
2024-05-29Rename 'pat_t' -> 'bp_pat_t'Bruce Hill
2024-02-11Bugfix for string literals and add support for printing patterns withBruce Hill
--verbose
2024-01-15Smart case by defaultBruce Hill
2023-11-27Fix "-w" flag and fix optimization for skipping to matchBruce Hill
2023-11-25Deprecate '-p' flag and replace backslash interpolation with curly braceBruce Hill
interpolation
2023-05-16Respect $NO_COLORBruce Hill
2022-12-27Add number of characters printed to fprint_match()Bruce Hill
2022-10-27Revert "Moving to each_match() API"Bruce Hill
This reverts commit 9380a54d7cf1795b26be79cd7abbb74a415d0788.
2022-10-26Moving to each_match() APIBruce Hill
2022-04-30Simplified things by passing a def argument to next_match instead ofBruce Hill
chaining defs together. Also simplified `..` by just using a lookahead instead of retconning it. Immutability invariants are now enforced better.
2022-04-09Moving print logic out of match.c and renaming explain -> printmatchBruce Hill
2022-02-28Fixed typoBruce Hill
2021-11-07Fix to ensure proper line numberingBruce Hill
2021-10-01Bugfix for use-after-free, as well as an issue with the orderBruce Hill
grammars were loaded
2021-09-27Better error messages (bugfix)Bruce Hill
2021-09-27Added commentBruce Hill
2021-09-27Cleanup for trailing line printingBruce Hill
2021-09-27Bugfix for certain patterns (e.g. $$) that didn't trigger line numberBruce Hill
printing
2021-09-27Removed definitions as a separate type and instead encode that value inBruce Hill
the patterns themselves. This simplifies memory management a lot and speeds up performance.
2021-09-26Refactor of pat_t memory management to use doubly linked lists, andBruce Hill
moving the recursive freeing code from Lua/lbp.c into pattern.c
2021-09-25Minor cleanupBruce Hill
2021-09-25Minor cleanup of context printing codeBruce Hill
2021-09-25Slightly ugly hack to fix but where line number got double printedBruce Hill
2021-09-24Removed file_err() and file_printf() in favor of just inlining some ofBruce Hill
the error assertion code. Also eliminated most of the spoof_file() calls in favor of just using command line arguments directly.
2021-09-24Fixed double line numberingBruce Hill
2021-09-23Removed print filesBruce Hill
2021-09-23WIP: working line breaks, formatting, etc. All seems functional, but aBruce Hill
bit messy
2021-09-23WIPBruce Hill
2021-09-23Patterns don't need to reference a separate `start` value anymoreBruce Hill
2021-09-23Moving pattern lifetime tracking off of files and onto its own list ofBruce Hill
allocated pats.
2021-09-23Moved type defs into their own files instead of types.hBruce Hill
2021-09-23Switched to using an optional typeBruce Hill
2021-09-23Merge branch 'master' into setjmpBruce Hill
2021-09-23Deprecated (!)-errorsBruce Hill
2021-09-23WIP implementation of setjmp/longjmp recoveryBruce Hill
2021-09-22Moved trailing newline guarantee code into bp.cBruce Hill
2021-09-21Moving cache logic into match, cleaner next_match() API, and slightlyBruce Hill
less tightly coupled UTF8 API
2021-09-19Minor cleanupBruce Hill
2021-09-19Fix for single-arg when it's a directoryBruce Hill
2021-09-07Shortening \033[0m -> \033[mBruce Hill
2021-09-07Fixes for inplace modificationsBruce Hill
2021-09-04Changed non-tty output to BARE instead of PLAINBruce Hill
2021-09-02Improved formatting optionsBruce Hill
2021-08-28Style change: added cino=:0 (i.e. case statements on same indentation asBruce Hill
switch). Also fixed issue where $$ would fail to match with trailing newline on file
2021-08-25Only print filenames when there are multiple filesBruce Hill
2021-08-23Only print all input if input is stdin *and* context is ALLBruce Hill
2021-08-23Instead of always printing all context with -r flag, always print allBruce Hill
context with handling piped in input