Don't allow '-' as part of an identifier token

This commit is contained in:
John Wiegley 2009-02-21 00:45:04 -04:00
parent 23725ffafb
commit bfa2691583

View file

@ -110,7 +110,7 @@ void expr_t::token_t::parse_ident(std::istream& in)
length = 0;
char c, buf[256];
READ_INTO_(in, buf, 255, c, length, std::isalnum(c) || c == '_' || c == '-');
READ_INTO_(in, buf, 255, c, length, std::isalnum(c) || c == '_');
value.set_string(buf);
}