correct indentation after pressing Enter in KDoc tag

#KT-7044 Fixed
This commit is contained in:
Dmitry Jemerov
2015-03-20 17:51:43 +01:00
parent 03f0c6ede7
commit 408f7da0c5
4 changed files with 14 additions and 1 deletions
@@ -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');