File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,12 @@ fsm_union_array(size_t fsm_count,
5757 * eager outputs can match. Ownership of the NFAs is transferred, they will
5858 * be combined (or freed, if they don't have a start state).
5959 *
60- * This MUST be called with NFAs constructed via re_comp, Calling it
61- * with manually constructed NFAs or DFAs may lead to incorrect loop
62- * linking, because in a few ambiguous cases (e.g. `$|^`) it relies on
63- * internal details of re_comp's normal construction to correctly
64- * identify the state representing the unanchored start loop.
60+ * This must be called with NFAs constructed via re_comp, using its
61+ * RE_SAVE_LINKAGE_INFO flag. That saves details during construction
62+ * that are necessary to correctly handle anchoring while linking
63+ * them into the combined NFA. If any of the NFAs do not have that
64+ * information populated, the whole set will be rejected and it
65+ * will return NULL.
6566 *
6667 * This will set end IDs and/or output IDs representing matching each
6768 * of the original NFAs on the combined result, where nfas[i] will
You can’t perform that action at this time.
0 commit comments