Build an "inverted" path to allow for patterns that exclude characters.

This commit is contained in:
2018-02-08 15:29:38 -08:00
parent 945426e245
commit e849cc8ba2
2 changed files with 62 additions and 1 deletions

View File

@@ -56,6 +56,11 @@ struct pattern_node_s {
* The id of the pattern that this node belongs to.
*/
int pattern_id;
/**
* Whether to "invert" this node - inverted
* nodes indicate "match anything but this".
*/
int invert;
/**
* The node's data that varies based on type.