support _ in identifiers
This commit is contained in:
parent
2ea517ed26
commit
a968dc687d
2 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue