mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
revert(BasicJavaLexer): Consider //// comments as markdown ones
GitOrigin-RevId: a3860a74c3bda9b7b3dc84c2da5d96c9249620ef
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b7d5b6900c
commit
983ed1cd1c
@@ -145,16 +145,9 @@ public class BasicJavaLexer extends LexerBase {
|
||||
if (nextChar == '/') {
|
||||
int l2 = mySymbolLength;
|
||||
if (myBufferIndex + l1 + l2 < myBufferEndOffset && locateCharAt(myBufferIndex + l1 + l2) == '/') {
|
||||
int l3 = mySymbolLength;
|
||||
if(myBufferIndex + l1 + l2 + l3 < myBufferEndOffset && locateCharAt(myBufferIndex + l1 + l2 + l3) == '/') {
|
||||
// Long end of line comment
|
||||
myTokenType = JavaTokenType.END_OF_LINE_COMMENT;
|
||||
myTokenEndOffset = getLineTerminator(myBufferIndex + l1 + l2);
|
||||
} else {
|
||||
// Java 23 Markdown comments
|
||||
myTokenType = myJavaDocElementTypeContainer.DOC_COMMENT;
|
||||
myTokenEndOffset = getClosingMarkdownComment(myBufferIndex + l1 + l2);
|
||||
}
|
||||
// Java 23 Markdown comments
|
||||
myTokenType = myJavaDocElementTypeContainer.DOC_COMMENT;
|
||||
myTokenEndOffset = getClosingMarkdownComment(myBufferIndex + l1 + l2);
|
||||
} else {
|
||||
myTokenType = JavaTokenType.END_OF_LINE_COMMENT;
|
||||
myTokenEndOffset = getLineTerminator(myBufferIndex + l1 + l2);
|
||||
|
||||
Reference in New Issue
Block a user