From de9c71967558c2f8d3adf9c237a8fafe3788c84f Mon Sep 17 00:00:00 2001 From: kpouer Date: Wed, 10 Sep 2003 19:21:34 +0000 Subject: [PATCH] a little bug fixed in the switch labels --- net.sourceforge.phpeclipse/src/test/PHPParser.java | 2 +- net.sourceforge.phpeclipse/src/test/PHPParser.jj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/test/PHPParser.java b/net.sourceforge.phpeclipse/src/test/PHPParser.java index b2021a8..9012909 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParser.java +++ b/net.sourceforge.phpeclipse/src/test/PHPParser.java @@ -4155,7 +4155,6 @@ Token token; } try { token = jj_consume_token(COLON); - {if (true) return expr;} } catch (ParseException e) { errorMessage = "':' expected after case expression"; errorLevel = ERROR; @@ -4163,6 +4162,7 @@ Token token; errorEnd = expr.sourceEnd+1; processParseExceptionDebug(e); } + {if (true) return expr;} break; case _DEFAULT: token = jj_consume_token(_DEFAULT); diff --git a/net.sourceforge.phpeclipse/src/test/PHPParser.jj b/net.sourceforge.phpeclipse/src/test/PHPParser.jj index 10ba3a9..35e1229 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParser.jj +++ b/net.sourceforge.phpeclipse/src/test/PHPParser.jj @@ -2846,7 +2846,6 @@ Expression SwitchLabel() : } try { token = - {return expr;} } catch (ParseException e) { errorMessage = "':' expected after case expression"; errorLevel = ERROR; @@ -2854,6 +2853,7 @@ Expression SwitchLabel() : errorEnd = expr.sourceEnd+1; processParseExceptionDebug(e); } + {return expr;} | token = <_DEFAULT> try { -- 1.7.1