Skip to content

Commit

Permalink
Remove usages of JavaHighlightingColors (for support IDEs without sup…
Browse files Browse the repository at this point in the history
…port Java language)
  • Loading branch information
reeFridge committed Feb 25, 2019
1 parent 2f550a1 commit b9bc7c1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.interfaced.brs.editor.highlight

import com.intellij.lexer.Lexer
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors
import com.intellij.ide.highlighter.JavaHighlightingColors
import com.intellij.openapi.editor.colors.TextAttributesKey
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase
import com.intellij.psi.tree.IElementType
Expand Down Expand Up @@ -86,7 +85,7 @@ class BrsHighlighter : SyntaxHighlighterBase() {
companion object {
val KEYWORD = TextAttributesKey.createTextAttributesKey(
"BRS.KEYWORD",
JavaHighlightingColors.KEYWORD
DefaultLanguageHighlighterColors.KEYWORD
)
val COMMA = TextAttributesKey.createTextAttributesKey(
"BRS.COMMA",
Expand Down Expand Up @@ -126,7 +125,7 @@ class BrsHighlighter : SyntaxHighlighterBase() {
)
val TYPE = TextAttributesKey.createTextAttributesKey(
"BRS.TYPE",
JavaHighlightingColors.TYPE_PARAMETER_NAME_ATTRIBUTES
DefaultLanguageHighlighterColors.PARAMETER
)
val COLON = TextAttributesKey.createTextAttributesKey(
"BRS.COLON",
Expand Down

0 comments on commit b9bc7c1

Please sign in to comment.