User: kyle wood Date: 17 Aug 22 23:42 Revision: 58e6b4d7ae5c1c5f87d8482b3fc5e015151913dc Summary: Use sentence capitalization in NBTT annotation types TeamCity URL: https://ci.denwav.dev/viewModification.html?tab=vcsModificationFiles&modId=8084&personal=false Index: src/main/kotlin/nbt/lang/colors/NbttAnnotator.kt =================================================================== --- src/main/kotlin/nbt/lang/colors/NbttAnnotator.kt (revision 5530d6aa6b2ac1df8f851198cc4f9ab13289a644) +++ src/main/kotlin/nbt/lang/colors/NbttAnnotator.kt (revision 58e6b4d7ae5c1c5f87d8482b3fc5e015151913dc) @@ -13,7 +13,6 @@ 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 @@ -70,12 +69,11 @@ 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() } } }