correct indentation after pressing Enter in KDoc tag
#KT-7044 Fixed
This commit is contained in:
@@ -66,7 +66,9 @@ public class JetBlock extends AbstractBlock {
|
|||||||
CLASS_BODY,
|
CLASS_BODY,
|
||||||
FUNCTION_LITERAL);
|
FUNCTION_LITERAL);
|
||||||
|
|
||||||
private static final TokenSet KDOC_CONTENT = TokenSet.create(KDocTokens.KDOC, KDocElementTypes.KDOC_SECTION);
|
private static final TokenSet KDOC_CONTENT = TokenSet.create(KDocTokens.KDOC,
|
||||||
|
KDocElementTypes.KDOC_SECTION,
|
||||||
|
KDocElementTypes.KDOC_TAG);
|
||||||
|
|
||||||
// private static final List<IndentWhitespaceRule>
|
// private static final List<IndentWhitespaceRule>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
/**
|
||||||
|
* @param foo<caret>
|
||||||
|
*/
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
/**
|
||||||
|
* @param foo
|
||||||
|
* <caret>
|
||||||
|
*/
|
||||||
@@ -35,6 +35,10 @@ public class JetCommenterTest extends LightCodeInsightTestCase {
|
|||||||
doNewLineTypingTest();
|
doNewLineTypingTest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testNewLineInTag() throws Exception {
|
||||||
|
doNewLineTypingTest();
|
||||||
|
}
|
||||||
|
|
||||||
private void doNewLineTypingTest() throws Exception {
|
private void doNewLineTypingTest() throws Exception {
|
||||||
configure();
|
configure();
|
||||||
EditorTestUtil.performTypingAction(getEditor(), '\n');
|
EditorTestUtil.performTypingAction(getEditor(), '\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user