ASParser: fixed issue where ] was not included in array literal node
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/673e0880 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/673e0880 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/673e0880 Branch: refs/heads/develop Commit: 673e0880e0bae289da52b62e84b7b1a2e57ab1e5 Parents: ba21c89 Author: Josh Tynjala <[email protected]> Authored: Wed Mar 30 14:33:04 2016 -0700 Committer: Josh Tynjala <[email protected]> Committed: Wed Mar 30 14:33:04 2016 -0700 ---------------------------------------------------------------------- .../src/org/apache/flex/compiler/internal/parsing/as/ASParser.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/673e0880/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g ---------------------------------------------------------------------- diff --git a/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g b/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g index c84a089..5bdbd44 100644 --- a/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g +++ b/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g @@ -2483,7 +2483,7 @@ arrayInitializer [ArrayLiteralNode node] } : open:TOKEN_SQUARE_OPEN { contents.startAfter(open); } arrayElements[contents] - close:TOKEN_SQUARE_CLOSE { contents.endBefore(close); } + close:TOKEN_SQUARE_CLOSE { contents.endAfter(close); } ; exception catch [RecognitionException ex] {
