Search in sources :

Example 1 with GroovyDocSyntaxHighlighter

use of org.jetbrains.plugins.groovy.lang.groovydoc.highlighter.GroovyDocSyntaxHighlighter in project intellij-community by JetBrains.

the class GroovyEditorHighlighter method registerGroovydocHighlighter.

private void registerGroovydocHighlighter() {
    // Register GroovyDoc Highlighter
    SyntaxHighlighter groovyDocHighlighter = new GroovyDocSyntaxHighlighter();
    final LayerDescriptor groovyDocLayer = new LayerDescriptor(groovyDocHighlighter, "\n", GroovySyntaxHighlighter.DOC_COMMENT_CONTENT);
    registerLayer(GroovyDocElementTypes.GROOVY_DOC_COMMENT, groovyDocLayer);
}
Also used : GroovyDocSyntaxHighlighter(org.jetbrains.plugins.groovy.lang.groovydoc.highlighter.GroovyDocSyntaxHighlighter) SyntaxHighlighter(com.intellij.openapi.fileTypes.SyntaxHighlighter) GroovyDocSyntaxHighlighter(org.jetbrains.plugins.groovy.lang.groovydoc.highlighter.GroovyDocSyntaxHighlighter) LayerDescriptor(com.intellij.openapi.editor.ex.util.LayerDescriptor)

Aggregations

LayerDescriptor (com.intellij.openapi.editor.ex.util.LayerDescriptor)1 SyntaxHighlighter (com.intellij.openapi.fileTypes.SyntaxHighlighter)1 GroovyDocSyntaxHighlighter (org.jetbrains.plugins.groovy.lang.groovydoc.highlighter.GroovyDocSyntaxHighlighter)1