Allow non-terminals to have _ and ' characters in their names.