Commit Graph

107 Commits

Author SHA1 Message Date
68f6218444 Fix domains to require a TLD (but allow non-tld domains like "localhost"
in URLS)
2023-05-06 13:56:48 -04:00
23c64e386c Changed how tags work, changed Lua API for handling match captures 2022-05-14 22:43:13 -04:00
56da250d69 Split backref/named captures into separate concepts for performance
reasons.
2022-05-12 12:11:28 -04:00
3944a36f14 Updated docs 2022-05-02 18:01:45 -04:00
24ed834317 Simplified things by passing a def argument to next_match instead of
chaining defs together. Also simplified `..` by just using a lookahead
instead of retconning it. Immutability invariants are now enforced
better.
2022-04-30 14:19:08 -04:00
304d5c35a8 Left recursion correctness fixes 2021-10-02 11:33:40 -07:00
0ad64a1006 Bugfix for use-after-free, as well as an issue with the order
grammars were loaded
2021-10-01 19:29:31 -07:00
744a927562 Deprecated (!)-errors 2021-09-23 13:42:23 -07:00
1cf17cf95c Optimization for parens pattern 2021-08-29 13:44:43 -07:00
c608abae65 Micro optimization 2021-08-01 22:06:33 -07:00
994c9c973e Changed how definitions work 2021-08-01 12:40:27 -07:00
9c05f880b0 Added | as alias for \b 2021-07-30 20:23:18 -07:00
ba6ee18ded Added strict mode for upto operator: ..=Abc 2021-07-30 19:24:35 -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
85f6cb8e76 Performance optimization for common case where pattern starts with
string
2021-07-17 15:25:24 -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
c87a3add5b Fix for keyword check 2021-05-22 13:25:14 -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
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
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
17dbe5d9e8 Added {word} feature and cleaned up the code some. 2021-05-10 23:46:46 -07:00
d9cca805a0 Added web grammar 2021-01-26 17:21:57 -08:00
b50ad0cad0 Fixed grammar syntax for ..% 2021-01-20 15:46:21 -08:00
b4c8a33a0c Tweaked .. syntax to make it more flexible (now: .. % skip pat) 2021-01-20 15:23:57 -08:00
8df395e701 Fixed some grammar bugs 2021-01-18 14:52:33 -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
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
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
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
1d86625f92 Zazzing up repetitions with fancy ∞ symbol 2021-01-17 13:38:08 -08:00
a7e3e421db Deprecated #(...)# block comments 2021-01-16 10:39:09 -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
9238ffea88 Added rule for hiding 2021-01-14 16:16:41 -08:00