Find: Comments only: Groovy javadoc comments are skipped (IDEA-115578)

This commit is contained in:
Maxim.Mossienko
2013-10-30 00:38:04 +01:00
parent 35f9256deb
commit 00f7ea1e4b
2 changed files with 4 additions and 1 deletions
@@ -476,6 +476,8 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
findModel.setRegularExpressions(true);
FindManagerTestUtils.runFindForwardAndBackward(findManager, findModel, text);
FindManagerTestUtils.runFindForwardAndBackward(findManager, findModel, text, "groovy");
}
public void testFindInCommentsProperlyWorksWithOffsets() throws Exception{
@@ -16,6 +16,7 @@
package org.jetbrains.plugins.groovy.highlighter;
import com.intellij.lexer.LayeredLexer;
import com.intellij.openapi.editor.colors.EditorColorsScheme;
import com.intellij.openapi.editor.ex.util.LayerDescriptor;
import com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter;
@@ -30,7 +31,7 @@ public class GroovyEditorHighlighter extends LayeredLexerEditorHighlighter {
public GroovyEditorHighlighter(EditorColorsScheme scheme) {
super(new GroovySyntaxHighlighter(), scheme);
registerGroovydocHighlighter();
if (!Boolean.TRUE.equals(LayeredLexer.ourDisableLayersFlag.get())) registerGroovydocHighlighter();
}
private void registerGroovydocHighlighter() {