From 5be61fe0059d01405b3acafb16e68fc1c13ea4ac Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Tue, 18 Jan 2011 06:57:51 +0000 Subject: [PATCH] Catch multiple {else} errors in shippy git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1932 eee81c28-f429-11dd-99c0-75d572ba1ddd --- build/tools/ship.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/tools/ship.py b/build/tools/ship.py index 4e0ae62b..89419b85 100755 --- a/build/tools/ship.py +++ b/build/tools/ship.py @@ -91,6 +91,10 @@ def parseComment(line, line_num, enabled_flags): print 'Fatal Error: {else} found without {if} on line ' + str(line_num) print line quit() + if inside_if == 'else': + print 'Fatal Error: Multiple {else} clauses found in the same if on line ' + str(line_num) + print line + quit() if last_if_true: line = '