SYNG1005 - Invalid pattern
Domain: sexp
Severity: USER
A regex pattern is syntactically invalid.
Patterns in SYNG queries use Rust's regex syntax. Invalid regex constructs like unbalanced brackets or invalid escape sequences will produce this error.
Example
clojure
(str /[invalid/)The regex [invalid has an unclosed character class bracket.
Solution
Fix the regex syntax. Common issues:
- Unclosed
[brackets:/[a-z]/not/[a-z/ - Invalid escapes: use
\\.not\.for literal dots in some contexts - Unbalanced groups:
/(?:foo)/not/(?:foo/
clojure
(str /[a-z]+/)