From 3c92cb142a9eee345370ce910513ccddbcccb93a Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Mon, 21 Feb 2022 07:14:52 +0100 Subject: regcomp.c: consistent NOTHING/OPFAIL optimizations for lookaround Add funcs to parse empty constructs which boil down to OPFAIL or NOTHING, and then consistently use them while parsing lookahead and lookbehind. This allows us to eliminate duplicated code and optimize the various cases which boil down to these constructs. Eg. (?!) and (?