Adds rules for template specifiers