support _ in identifiers

This commit is contained in:
Quentin Carbonneaux 2015-11-18 08:56:02 -05:00
parent 2ea517ed26
commit a968dc687d
2 changed files with 3 additions and 3 deletions

View file

@ -225,7 +225,7 @@ Alpha: c = fgetc(inf);
err("identifier too long");
tok[i++] = c;
c = fgetc(inf);
} while (isalpha(c) || c == '.' || isdigit(c));
} while (isalpha(c) || c == '.' || c == '_' || isdigit(c));
tok[i] = 0;
ungetc(c, inf);
if (t != TXXX) {