diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-07 10:33:46 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-07 10:33:46 -0600 |
commit | 90029d9925f2662c655d72fab1f46ee343765ba7 (patch) | |
tree | dcc37acccecc3d790b357f4d2f72219256d9c5a0 /src/token.cc | |
parent | a19578a6072d85857e0a9c837db3a8801f83577c (diff) | |
download | fork-ledger-90029d9925f2662c655d72fab1f46ee343765ba7.tar.gz fork-ledger-90029d9925f2662c655d72fab1f46ee343765ba7.tar.bz2 fork-ledger-90029d9925f2662c655d72fab1f46ee343765ba7.zip |
Allow identifier names to begin with _
Diffstat (limited to 'src/token.cc')
-rw-r--r-- | src/token.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/token.cc b/src/token.cc index 57b97eca..e5d6b218 100644 --- a/src/token.cc +++ b/src/token.cc @@ -421,7 +421,7 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags) throw_(parse_error, _("Failed to reset input stream")); c = static_cast<char>(in.peek()); - if (! std::isalpha(c)) + if (! std::isalpha(c) && c != '_') expected('\0', c); parse_ident(in); |