Signals that backtracking degraded, so the author can rewrite the pattern. */
()
| 177 | |
| 178 | /* Signals that backtracking degraded, so the author can rewrite the pattern. */ |
| 179 | fn too_complex() -> ReError { |
| 180 | ReError::TooComplex(String::from("catastrophic backtracking: O(n^2) time or worse on this input, simplify nested quantifiers")) |
| 181 | } |
| 182 | |
| 183 | /* Reject lookbehind whose width is not fixed, which the engine cannot run. */ |
| 184 | fn validate(node: &Node) -> Result<(), ReError> { |