From: kpouer Date: Wed, 10 Sep 2003 19:21:34 +0000 (+0000) Subject: a little bug fixed in the switch labels X-Git-Url: http://git.phpeclipse.com a little bug fixed in the switch labels --- 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 {