Skip to content

Commit cc84081

Browse files
committed
fix(MarkdownTokenMaker) rendering bug when '#' is not in a header
1 parent 645e18f commit cc84081

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/modes/MarkdownTokenMaker.flex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ EmailAddress = ([^@]+@[^@]+\.[^@]+)
451451
// If for some reason it isn't, highlight it as an identifier and continue on
452452
else {
453453
int count = yylength();
454-
addToken(zzStartRead, zzStartRead + 1, Token.IDENTIFIER);
454+
addToken(zzStartRead, zzStartRead, Token.IDENTIFIER);
455455
zzMarkedPos -= (count - 1);
456456
}
457457
}

RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/modes/MarkdownTokenMaker.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)