File tree Expand file tree Collapse file tree 2 files changed +160
-130
lines changed
src/org/intellij/clojure/devkt Expand file tree Collapse file tree 2 files changed +160
-130
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import org.intellij.clojure.devkt.psi.*
6
6
import org.intellij.clojure.devkt.psi.ClojureTypes.*
7
7
import org.intellij.clojure.devkt.util.*
8
8
import org.jetbrains.kotlin.com.intellij.psi.PsiElement
9
+ import org.jetbrains.kotlin.com.intellij.psi.PsiErrorElement
9
10
import org.jetbrains.kotlin.com.intellij.psi.tree.IElementType
10
11
11
12
class Clojure <TextAttributes > : ExtendedDevKtLanguage <TextAttributes >(
@@ -67,6 +68,7 @@ class Clojure<TextAttributes> : ExtendedDevKtLanguage<TextAttributes>(
67
68
}
68
69
if (callable) document.highlight(element.valueRange, colorScheme.keywords)
69
70
when (element) {
71
+ is PsiErrorElement -> document.highlight(element, colorScheme.unknown)
70
72
is CMetadata -> {
71
73
element.firstForm.let {
72
74
// / if (it is CSymbol) document.highlight(it, null)
You can’t perform that action at this time.
0 commit comments