yurloc commented on code in PR #5797:
URL:
https://github.com/apache/incubator-kie-drools/pull/5797#discussion_r1533049973
##########
drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRLParser.g4:
##########
@@ -124,7 +124,7 @@ lhsPattern : xpathPrimary (OVER patternFilter)? |
( QUESTION? qualifiedIdentifier LPAREN positionalConstraints?
constraints? RPAREN (OVER patternFilter)? (FROM patternSource)? ) ;
*/
-lhsPattern : QUESTION? objectType=drlQualifiedName LPAREN
positionalConstraints? constraints? RPAREN (DRL_OVER patternFilter)? (DRL_FROM
patternSource)? ;
+lhsPattern : QUESTION? objectType=drlQualifiedName LPAREN
positionalConstraints? constraints? RPAREN drlAnnotation* (DRL_OVER
patternFilter)? (DRL_FROM patternSource)? ;
Review Comment:
This allows an annotation to appear after a LHS pattern, for example
`Person() @watch(!age)`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]