mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Find: Comments only: Groovy javadoc comments are skipped (IDEA-115578)
This commit is contained in:
@@ -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{
|
||||
|
||||
+2
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user