Chromium Code Reviews| Index: parser.dart |
| =================================================================== |
| --- parser.dart (revision 910) |
| +++ parser.dart (working copy) |
| @@ -619,6 +619,8 @@ |
| _peekCaseEnd() { |
| var kind = _peek(); |
| + //TODO(efortuna): also if the first is an identifier followed by a colon, we |
| + //have a label for the case statement. |
| return kind == TokenKind.RBRACE || kind == TokenKind.CASE || |
| kind == TokenKind.DEFAULT; |
| } |
| @@ -627,8 +629,8 @@ |
| int start = _peekToken.start; |
| var label = null; |
| if (_peekIdentifier()) { |
| + label = identifier(); |
|
jimhug
2011/10/28 20:02:44
Whoa! How was this working before?
|
| _eat(TokenKind.COLON); |
| - label = identifier(); |
| } |
| var cases = []; |
| while (true) { |