Simplify regex in syntax definition