1 | // This cfg should match the one in src/util/look.rs that uses perl_word. |
2 | #[cfg (all( |
3 | // We have to explicitly want to support Unicode word boundaries. |
4 | feature = "unicode-word-boundary" , |
5 | not(all( |
6 | // If we don't have regex-syntax at all, then we definitely need to |
7 | // bring our own \w data table. |
8 | feature = "syntax" , |
9 | // If unicode-perl is enabled, then regex-syntax/unicode-perl is |
10 | // also enabled, which in turn means we can use regex-syntax's |
11 | // is_word_character routine (and thus use its data tables). But if |
12 | // unicode-perl is not enabled, even if syntax is, then we need to |
13 | // bring our own. |
14 | feature = "unicode-perl" , |
15 | )), |
16 | ))] |
17 | pub(crate) mod perl_word; |
18 | |