diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-03 13:26:27 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-03 13:26:27 -0400 |
commit | 0f9d919367ada929daa6fc8d8a176a4ba63308b2 (patch) | |
tree | 71f2674b7785d0754572600791c7ca5d8c2869ed /src/commodity.cc | |
parent | d7b9f9e068d6817944854a31df1fc34258707a1a (diff) | |
download | fork-ledger-0f9d919367ada929daa6fc8d8a176a4ba63308b2.tar.gz fork-ledger-0f9d919367ada929daa6fc8d8a176a4ba63308b2.tar.bz2 fork-ledger-0f9d919367ada929daa6fc8d8a176a4ba63308b2.zip |
Added Python-style if/else expression keywords
Diffstat (limited to 'src/commodity.cc')
-rw-r--r-- | src/commodity.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commodity.cc b/src/commodity.cc index 08252cf4..243d2a6c 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -473,8 +473,12 @@ namespace { return std::strcmp(buf, "and") == 0; case 'd': return std::strcmp(buf, "div") == 0; + case 'e': + return std::strcmp(buf, "else") == 0; case 'f': return std::strcmp(buf, "false") == 0; + case 'i': + return std::strcmp(buf, "if") == 0; case 'o': return std::strcmp(buf, "or") == 0; case 'n': |