import re


def match_type_id(op):
    """Tell if given string matches a type."""
    if re.match(r'^(bool|float|int|ivec\d|mat\d|sampler\dD|samplerCube|vec\d|void)$', op):
        return True
    return False