summaryrefslogtreecommitdiff
path: root/src/token.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-21 00:45:04 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-21 00:45:04 -0400
commitbfa2691583f92ce3b7ff346fe55253ff0391dafc (patch)
treea77b5467b7586fa99ad8426d13e2939aafd7d29d /src/token.cc
parent23725ffafbbe1d4463f9cfd805f4f59f4c8a2591 (diff)
downloadfork-ledger-bfa2691583f92ce3b7ff346fe55253ff0391dafc.tar.gz
fork-ledger-bfa2691583f92ce3b7ff346fe55253ff0391dafc.tar.bz2
fork-ledger-bfa2691583f92ce3b7ff346fe55253ff0391dafc.zip
Don't allow '-' as part of an identifier token
Diffstat (limited to 'src/token.cc')
-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);
}