You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2019/11/21 21:24:56 UTC
[royale-compiler] branch develop updated: ASParser: fixed end
position of ConfigConditionBlockNode
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new f0a319b ASParser: fixed end position of ConfigConditionBlockNode
f0a319b is described below
commit f0a319b3ba1aa7d1e6f7e72ed19371b0a356445c
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Thu Nov 21 13:24:49 2019 -0800
ASParser: fixed end position of ConfigConditionBlockNode
---
.../org/apache/royale/compiler/internal/parsing/as/ASParser.g | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/compiler/src/main/antlr/org/apache/royale/compiler/internal/parsing/as/ASParser.g b/compiler/src/main/antlr/org/apache/royale/compiler/internal/parsing/as/ASParser.g
index 8a6a299..0e47a0b 100644
--- a/compiler/src/main/antlr/org/apache/royale/compiler/internal/parsing/as/ASParser.g
+++ b/compiler/src/main/antlr/org/apache/royale/compiler/internal/parsing/as/ASParser.g
@@ -343,6 +343,13 @@ groupDirectiveWithConfigVariable [ContainerNode c, int endToken]
c.addItem(block);
}
groupDirective[block, endToken]
+ {
+ Token prevToken = buffer.previous();
+ if(prevToken.getType() == endToken)
+ {
+ block.endAfter(prevToken);
+ }
+ }
;
/**