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
commit 064ac9c64bd51bfbd9a9cfb933fcbdbb6cff0b79 Author: Josh Tynjala <[email protected]> AuthorDate: Thu Nov 7 14:17:13 2024 -0800 ASParser: recognize (and ignore) asdoc comment token in contexts where it should be treated like a regular multiline comment (references #189) There may be more cases where this token needs to be ignored, but this should catch most in expressions. --- .../main/antlr/org/apache/royale/compiler/internal/parsing/as/ASParser.g | 1 + 1 file changed, 1 insertion(+) 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 74e661e13..f92953251 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 @@ -2415,6 +2415,7 @@ unaryExpr returns [ExpressionNodeBase n] (options { greedy = true; }: n=propertyAccessExpression[n] | n=arguments[n] + | TOKEN_ASDOC_COMMENT )* ; exception catch [RecognitionException ex] { handleParsingError(ex); }
