#include "parser/parse_error.h"
#include "parser/Parser.h"
#include "parser/prefilter.h"
+#include "parser/unsupported.h"
#include "util/compile_error.h"
#include "util/cpuid_flags.h"
#include "util/depth.h"
prefilterTree(pe.component, ParseMode(flags));
}
+ // Expressions containing zero-width assertions and other extended pcre
+ // types aren't supported yet. This call will throw a ParseError
+ // exception if the component tree contains such a construct.
+ checkUnsupported(*pe.component);
+
+ pe.component->checkEmbeddedStartAnchor(true);
+ pe.component->checkEmbeddedEndAnchor(true);
+
auto built_expr = buildGraph(rm, cc, pe);
unique_ptr<NGHolder> &g = built_expr.g;
ExpressionInfo &expr = built_expr.expr;