From 0f9d919367ada929daa6fc8d8a176a4ba63308b2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Mar 2009 13:26:27 -0400 Subject: Added Python-style if/else expression keywords --- src/commodity.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/commodity.cc') 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': -- cgit v1.2.3