File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/main/kotlin/org/tonstudio/tact/ide/documentation Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,24 @@ import org.tonstudio.tact.ide.documentation.DocumentationUtils.asStruct
3838import org.tonstudio.tact.ide.documentation.DocumentationUtils.asTrait
3939import org.tonstudio.tact.lang.TactSyntaxHighlighter
4040import org.tonstudio.tact.lang.doc.psi.TactDocComment
41- import org.tonstudio.tact.lang.psi.impl.TactPsiImplUtil.getInheritedTraitsBase
4241
4342private fun StringBuilder.generateOwnerDpc (element : TactNamedElement ) {
4443 val owner = element.getOwner() ? : return
4544
4645 val kind = owner.kindPresentation()
4746 val name = owner.name ? : " "
4847
48+ val nameColor = when (element) {
49+ is TactContractDeclaration -> asContract
50+ is TactTraitDeclaration -> asTrait
51+ is TactMessageDeclaration -> asMessage
52+ is TactStructDeclaration -> asStruct
53+ else -> asStruct
54+ }
55+
4956 colorize(kind, asKeyword)
5057 append(" " )
51- colorize(name, asStruct )
58+ colorize(name, nameColor )
5259 append(" \n " )
5360}
5461
You can’t perform that action at this time.
0 commit comments