Correctly accept "false" as a keyword
This commit is contained in:
parent
e124811d8a
commit
81f57ecc41
1 changed files with 2 additions and 2 deletions
|
|
@ -41,8 +41,8 @@ int expr_t::token_t::parse_reserved_word(std::istream& in)
|
||||||
if (c == 'a' || c == 'd' || c == 'f' || c == 'o' || c == 'n' || c == 't') {
|
if (c == 'a' || c == 'd' || c == 'f' || c == 'o' || c == 'n' || c == 't') {
|
||||||
length = 0;
|
length = 0;
|
||||||
|
|
||||||
char buf[5];
|
char buf[6];
|
||||||
READ_INTO_(in, buf, 4, c, length, std::isalpha(c));
|
READ_INTO_(in, buf, 5, c, length, std::isalpha(c));
|
||||||
|
|
||||||
switch (buf[0]) {
|
switch (buf[0]) {
|
||||||
case 'a':
|
case 'a':
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue