Commit Graph

522 Commits

Author SHA1 Message Date
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
2622d44dc4 Switched calloc arg order 2021-01-18 09:35:15 -08:00
3bc3d824aa Cleanup 2021-01-18 09:34:52 -08:00
3ededef53d Static analysis part 1 2021-01-18 09:15:25 -08:00
65141b2402 Propagate signals better 2021-01-18 09:05:35 -08:00
4382fffbe0 Better visualization of matches with newlines and tabs 2021-01-18 00:38:55 -08:00
2615a3b9f2 Hacky fix for tabs misaligning error printing 2021-01-18 00:32:39 -08:00
dfdc7bf94a Fixed error printing code 2021-01-18 00:14:01 -08:00
b37c7c3985 Removed -v file from uninstall 2021-01-17 23:40:21 -08:00
4761a74abb Removed -v flags from install 2021-01-17 23:39:29 -08:00
0979e9d68d Fixed issue where bp -g bp would accidentally load local bp
executable file instead of /etc/xdg/bp/bp.bp
2021-01-17 23:37:35 -08:00
a337357d7b Better debug info 2021-01-17 23:37:27 -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
379bf1b6c8 Fix for leaktest renaming bpeg->bp 2021-01-17 23:26:24 -08:00
eb79c4a806 No longer allocatte memory for replacement string 2021-01-17 23:13:47 -08:00
ffdf32da2f Code cleanup on utils 2021-01-17 23:06:37 -08:00
ff597be5fc Updated manpage 2021-01-17 22:37:58 -08:00
ff928690bb Added documentation for grammars 2021-01-17 22:35:34 -08:00
1b9e2957c0 Cleanup of builtins 2021-01-17 22:35:13 -08:00
395bdd664f Added Lisp 2021-01-17 22:13:32 -08:00
d2600c8832 Improved rules for word boundary matching and ids (more utf8-compliant,
more flexible)
2021-01-17 22:07:08 -08:00
65ec566aa8 Fixed color output for utf8 sequences 2021-01-17 22:06:03 -08:00
58c4fe378d Bugfix for typo 2021-01-17 21:59:23 -08:00
ec9835df36 Added some aliases 2021-01-17 21:42:06 -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
1110a0ce8b Fixed bug with NULL filename 2021-01-17 21:15:37 -08:00
33665fe993 Added Javscript and simplified python imports 2021-01-17 20:30:59 -08:00
9736ace9a7 Added C++ grammar and aliases. 2021-01-17 20:19:49 -08:00
54b5dfba4d Added shell grammar 2021-01-17 20:13:34 -08:00
008db80229 Adding and improving grammars. 2021-01-17 20:05:19 -08:00
fdc91544b7 Improved HTML grammar 2021-01-17 19:44:44 -08:00
51313c4773 Adding more language grammars 2021-01-17 19:42:11 -08:00
23f9b7ade9 Added "not a keyword" to definition of id (keyword is undefined by
default, but overridden by grammars)
2021-01-17 19:29:42 -08:00
f92dc5514d Updated comment 2021-01-17 18:13:00 -08:00
c6dd967c70 Fixed two bugs: mmapped files weren't getting closed, and filenames with
%s-style formatting strings caused issues.
2021-01-17 18:06:00 -08:00
e248f5b2a8 Improved handling of directories (e.g. bp foo dir/) 2021-01-17 17:30:31 -08:00
1d86625f92 Zazzing up repetitions with fancy ∞ symbol 2021-01-17 13:38:08 -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
a4f0b93836 Added comment 2021-01-17 12:37:27 -08:00
f264731e6b Cleaned up flag parsing code. 2021-01-17 10:27:33 -08:00
58af933f4e Added --git/-G 2021-01-17 09:21:58 -08:00
05b9b0ff97 Better errors for bad patterns. 2021-01-17 09:11:11 -08:00
a7e3e421db Deprecated #(...)# block comments 2021-01-16 10:39:09 -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
13c4564594 Renamed grammar -> definitions 2021-01-15 19:35:39 -08:00
44573fc224 Rename compiler -> pattern 2021-01-15 19:32:37 -08:00