From 7cf231bd01cdb37164b46135b3bcec335b8cb10c Mon Sep 17 00:00:00 2001 From: justprv Date: Tue, 23 Oct 2018 12:58:25 +0400 Subject: [PATCH] #1402 ignore quoted jsp end tag --- pmd-jsp/etc/grammar/JspParser.jjt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pmd-jsp/etc/grammar/JspParser.jjt b/pmd-jsp/etc/grammar/JspParser.jjt index 44481522b2..08b9218a32 100644 --- a/pmd-jsp/etc/grammar/JspParser.jjt +++ b/pmd-jsp/etc/grammar/JspParser.jjt @@ -137,6 +137,7 @@ PARSER_END(JspParser) // anything but --%> | <#NO_JSP_COMMENT_END: (~["-"] | "-" ~["-"] | "--" ~["%"] | "--%" ~[">"])+ > | <#NO_JSP_TAG_END: ( ~["%"] | ("%" ~[">"]) )+ > +| <#NO_JSP_TAG_END_EXCEPT_QUOTED: ( ~["%", "\"", "'"] | ("%" ~[">"]) | )+ > } @@ -194,7 +195,7 @@ PARSER_END(JspParser) TOKEN : { " > : AfterTagState -| > +| > } TOKEN : @@ -206,7 +207,7 @@ PARSER_END(JspParser) TOKEN : { " > : AfterTagState -| > +| > } TOKEN :