adding withSyntax support for multiple patterns