summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-03 13:26:27 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-03 13:26:27 -0400
commit0f9d919367ada929daa6fc8d8a176a4ba63308b2 (patch)
tree71f2674b7785d0754572600791c7ca5d8c2869ed /src/commodity.cc
parentd7b9f9e068d6817944854a31df1fc34258707a1a (diff)
downloadfork-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.cc4
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':