mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
feat(javadoc): early markdown support part 2
GitOrigin-RevId: 74093daa489fda535b3951828d6617519e5d293f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0ccfb8e55f
commit
6ebdc205ef
@@ -0,0 +1,29 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.lexer;
|
||||
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
|
||||
/**
|
||||
* Describes JDoc comment specific to the Java Plugin (not part of the core-api)
|
||||
*/
|
||||
public interface JavaDocCommentTokenTypes extends DocCommentTokenTypes {
|
||||
|
||||
default IElementType codeFence() {
|
||||
return commentData();
|
||||
}
|
||||
default IElementType rightBracket() {
|
||||
return commentData();
|
||||
}
|
||||
default IElementType leftBracket() {
|
||||
return commentData();
|
||||
}
|
||||
default IElementType leftParenthesis() {
|
||||
return commentData();
|
||||
}
|
||||
default IElementType rightParenthesis() {
|
||||
return commentData();
|
||||
}
|
||||
default IElementType sharp() {
|
||||
return commentData();
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,8 @@ import com.intellij.psi.JavaDocTokenType;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import com.intellij.psi.tree.TokenSet;
|
||||
|
||||
public final class JavaDocTokenTypes implements DocCommentTokenTypes {
|
||||
public static final DocCommentTokenTypes INSTANCE = new JavaDocTokenTypes();
|
||||
public final class JavaDocTokenTypes implements JavaDocCommentTokenTypes {
|
||||
public static final JavaDocCommentTokenTypes INSTANCE = new JavaDocTokenTypes();
|
||||
private final TokenSet mySpaceCommentsSet = TokenSet.create(JavaDocTokenType.DOC_SPACE, JavaDocTokenType.DOC_COMMENT_DATA);
|
||||
|
||||
private JavaDocTokenTypes() { }
|
||||
|
||||
Reference in New Issue
Block a user