Skip to content

Commit ee31b69

Browse files
Incorporated code review comments
1 parent e0972d8 commit ee31b69

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/AbstractCommentParser.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,9 @@ protected boolean parseSnippet() throws InvalidInputException {
19661966
this.index = lastRBracePosition - 1;
19671967
}
19681968
if (snippetTag != null) {
1969-
this.setSnippetIsValid(snippetTag, (markdownSnippetIsValid) ? markdownSnippetIsValid : retVal);
1969+
if (this.markdown && markdownSnippetIsValid)
1970+
retVal = markdownSnippetIsValid;
1971+
this.setSnippetIsValid(snippetTag, retVal);
19701972
}
19711973
return retVal;
19721974
}

0 commit comments

Comments
 (0)