From bfa2691583f92ce3b7ff346fe55253ff0391dafc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 21 Feb 2009 00:45:04 -0400 Subject: Don't allow '-' as part of an identifier token --- src/token.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/token.cc') diff --git a/src/token.cc b/src/token.cc index 6286870b..1f6c8fb0 100644 --- a/src/token.cc +++ b/src/token.cc @@ -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); } -- cgit v1.2.3