pub fn is_valid_pattern_identifier(
    typ: TokenType,
    syntax: &ParsePatternSyntax
) -> bool