diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/IMarkdownCommentHelper.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/IMarkdownCommentHelper.java index 7f57de3f8e7..5ee6b613b04 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/IMarkdownCommentHelper.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/IMarkdownCommentHelper.java @@ -138,8 +138,8 @@ public void recordFenceChar(char previous, char next, boolean lineStarted) { int required = this.insideFencedCodeBlock ? this.fenceLength : 3; if (++this.fenceCharCount == required) { this.insideFencedCodeBlock^=true; + this.fenceLength = this.fenceCharCount; } - this.fenceLength = this.fenceCharCount; } @Override