Skip to content

Commit

Permalink
Use sentence capitalization in NBTT annotation types
Browse files Browse the repository at this point in the history
  • Loading branch information
DenWav committed Aug 17, 2022
1 parent 5530d6a commit 58e6b4d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/kotlin/nbt/lang/colors/NbttAnnotator.kt
Expand Up @@ -13,7 +13,6 @@ package com.demonwav.mcdev.nbt.lang.colors
import com.demonwav.mcdev.nbt.lang.gen.psi.NbttByte
import com.demonwav.mcdev.nbt.lang.gen.psi.NbttDouble
import com.demonwav.mcdev.nbt.lang.gen.psi.NbttFloat
import com.demonwav.mcdev.nbt.lang.gen.psi.NbttInt
import com.demonwav.mcdev.nbt.lang.gen.psi.NbttLong
import com.demonwav.mcdev.nbt.lang.gen.psi.NbttShort
import com.demonwav.mcdev.nbt.lang.gen.psi.NbttString
Expand Down Expand Up @@ -70,12 +69,11 @@ class NbttAnnotator : Annotator {

private fun annotateTypes(element: PsiElement, holder: AnnotationHolder) {
when (element) {
is NbttByte -> holder.newAnnotation(HighlightSeverity.INFORMATION, "byte").range(element).create()
is NbttShort -> holder.newAnnotation(HighlightSeverity.INFORMATION, "short").range(element).create()
is NbttInt -> holder.newAnnotation(HighlightSeverity.INFORMATION, "int").range(element).create()
is NbttLong -> holder.newAnnotation(HighlightSeverity.INFORMATION, "long").range(element).create()
is NbttFloat -> holder.newAnnotation(HighlightSeverity.INFORMATION, "float").range(element).create()
is NbttDouble -> holder.newAnnotation(HighlightSeverity.INFORMATION, "double").range(element).create()
is NbttByte -> holder.newAnnotation(HighlightSeverity.INFORMATION, "Type: byte").range(element).create()
is NbttShort -> holder.newAnnotation(HighlightSeverity.INFORMATION, "Type: short").range(element).create()
is NbttLong -> holder.newAnnotation(HighlightSeverity.INFORMATION, "Type: long").range(element).create()
is NbttFloat -> holder.newAnnotation(HighlightSeverity.INFORMATION, "Type: float").range(element).create()
is NbttDouble -> holder.newAnnotation(HighlightSeverity.INFORMATION, "Type: double").range(element).create()
}
}
}

0 comments on commit 58e6b4d

Please sign in to comment.