Commit Graph

32 Commits

Author SHA1 Message Date
23c64e386c Changed how tags work, changed Lua API for handling match captures 2022-05-14 22:43:13 -04:00
1cf17cf95c Optimization for parens pattern 2021-08-29 13:44:43 -07:00
9c05f880b0 Added | as alias for \b 2021-07-30 20:23:18 -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
2439a87833 Remove some word chars 2021-07-03 21:41:43 -07:00
55e57050c4 Slight tweak 2021-05-22 13:28:33 -07:00
ec1a3e0835 Fixes for char sets/ranges and cleanups 2021-05-20 16:46:14 -07:00
655ed12128 Mostly working version 2021-05-20 15:27:24 -07:00
355e06a58e Added ~ and !~ operators as replacements for == and != 2021-05-19 23:41:57 -07:00
5d5817c2a3 Fancier string escape sequences and a bit of cleanup. 2021-05-19 21:58:54 -07:00
1a1b3ecfee Renamed boundary->edge 2021-05-11 19:06:41 -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
b4c8a33a0c Tweaked .. syntax to make it more flexible (now: .. % skip pat) 2021-01-20 15:23:57 -08:00
71471476be Performance optimizations for id and | rules 2021-01-18 12:39:44 -08:00
1b9e2957c0 Cleanup of builtins 2021-01-17 22:35:13 -08:00
d2600c8832 Improved rules for word boundary matching and ids (more utf8-compliant,
more flexible)
2021-01-17 22:07:08 -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
54b5dfba4d Added shell grammar 2021-01-17 20:13:34 -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
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
88779eb240 Removed unnecessary start of file check 2021-01-12 18:34:45 -08:00
fc5ee8fcfc Fixed bug with ..%\n 2021-01-08 00:46:47 -08:00
00226cb763 Added whole-line-matching mode 2021-01-05 14:21:37 -08:00
4350d996d1 Simplified ... to ..%\n and $. to ./\n 2021-01-05 00:09:30 -08:00
a07da1989d Simplified syntax for replacement: just =>, no need for {} 2020-12-30 15:30:19 -08:00
177bc55cfc Updated to use `a,b,c 2020-12-19 19:04:21 -08:00
e4066302b9 Strings not multiline by default 2020-12-14 21:38:49 -08:00
a8b844cfb6 Multiline paren groups 2020-12-14 21:35:43 -08:00
8b50fc5d1d Fixed parens typo 2020-12-14 21:27:47 -08:00
9617baf699 Updated grammars 2020-12-14 18:39:56 -08:00
eb329bdac9 Bunch of changes, including some bpeg->bp renaming, and adding
visualizations
2020-12-12 16:31:53 -08:00