fix function name parsing
permit constants at pattern matching