Skip to content

Commit

Permalink
GML: Add an inherits clause to component documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattco98 committed Jan 27, 2024
1 parent 24ec597 commit 7d021cd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.intellij.lang.documentation.DocumentationSettings
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.editor.colors.TextAttributesKey
import com.intellij.openapi.editor.richcopy.HtmlSyntaxInfoUtil
import com.intellij.openapi.util.text.HtmlChunk
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.psi.PsiManager
Expand Down Expand Up @@ -71,6 +72,10 @@ class GMLDocumentationProvider : AbstractDocumentationProvider() {
buildString {
append(DocumentationMarkup.DEFINITION_START)
appendStyled(component.name, Highlights.COMPONENT_NAME)
if (component.inherits != null) {
append(" : ")
appendStyled(component.inherits, Highlights.COMPONENT_NAME)
}
append(DocumentationMarkup.DEFINITION_END)

if (component.description != null) {
Expand Down

0 comments on commit 7d021cd

Please sign in to comment.