summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/token.cc2
1 files changed, 1 insertions, 1 deletions
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);
}