Commit Graph

395 Commits

Author SHA1 Message Date
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
270509af3b Renamed vm->match 2021-01-15 19:30:21 -08:00
77b33d6a3c Renaming files: printing->print, file_loader->files 2021-01-15 19:27:25 -08:00
10dbcdd4fd Renaming op -> pat in variable names 2021-01-15 19:21:41 -08:00
984a869c98 Renaming 'op' member fields to 'pat' 2021-01-15 19:02:36 -08:00
5d1ffd6144 allocated_op -> allocated_pat 2021-01-15 18:58:44 -08:00
6d0ba0c074 Opcode reference 2021-01-15 18:57:44 -08:00
09e1d1a365 Removing opcode references 2021-01-15 18:57:09 -08:00
7c77f5d6f4 Rename destroy_op -> destroy_pat 2021-01-15 18:53:12 -08:00
dc38cde3c7 Better input handling. 2021-01-15 18:47:30 -08:00
253e81e1d9 More correct behavior for Ctrl-c 2021-01-15 18:45:33 -08:00
f5881a8c96 Better behavior for --context when it comes to --inplace (context used
for --confirm)
2021-01-15 18:43:03 -08:00
813d9a76af Renaming op -> pat, phase 1 refactor 2021-01-15 18:38:06 -08:00
631e59bfa7 Fully supporting NAME make argument 2021-01-15 18:32:56 -08:00
d31d2e8985 Added interactive confirmation mode for replacing text 2021-01-15 18:23:18 -08:00
87ad1efc24 Improved use of $(NAME) 2021-01-15 18:02:12 -08:00
1a3c90825a Added rule to simplify memory leak testing 2021-01-15 17:59:31 -08:00
00b96b1e13 Print trailing context in INPLACE modification 2021-01-15 13:12:22 -08:00
ef345797e2 Removed unnecessary check 2021-01-15 13:05:37 -08:00
b01f9973f4 Better variable names 2021-01-15 13:00:17 -08:00
b71148fb3f Fixed a text replacement bug and added a secondary color for replaced
text
2021-01-15 12:57:24 -08:00
6fd46f996e Removed auto-context-lines for -r flag 2021-01-15 12:53:57 -08:00
271ddaae66 Moved too-many-patterns check 2021-01-15 12:44:08 -08:00
ce1868d707 Added support for bp -p 'foo: "xx"; baz; baz: foo' 2021-01-15 12:40:19 -08:00
26fed0ec28 Don't close stdin 2021-01-15 12:21:11 -08:00
cbe1d97b37 Fixed bug with backrefs. The backref pushing was overly greedy and
has been updated to only push backrefs when a capture is directly
in the chain and not recursively contained within it.
2021-01-15 12:12:56 -08:00
b29060f38b Cleaned up and simplified global state setting stuff (e.g. --verbose) 2021-01-15 02:05:17 -08:00
8ff80b09cc Major overhaul of how different modes of behavior work. Approximately 2x
speedup and 2x memory footprint reduction. Also removed --mode and
VM_HIDE (~ operator), and added --context. Printing works better now.
2021-01-15 01:19:10 -08:00