void () { final String text1 = "package some; /**\n * "; String text = text1 + "@param */"; initDocument(text); final HighlighterIterator iterator = myHighlighter.createIterator(text1.length()); assertEquals(JavaDocTokenType.DOC_TAG_NAME, iterator.getTokenType()); }