Allow leading underscore in keywords.

This commit is contained in:
Guido van Rossum 1997-04-02 05:23:46 +00:00
parent 6fa4466cec
commit 6dacd90a83
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ translabel(g, lb)
}
if (lb->lb_type == STRING) {
if (isalpha(lb->lb_str[1])) {
if (isalpha(lb->lb_str[1]) || lb->lb_str[1] == '_') {
char *p;
if (debugging)
printf("Label %s is a keyword\n", lb->lb_str);