update AddSyntaxPattern interface