Skip to content

Commit

Permalink
feat: add preview for the highlight style of the return keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
lppedd committed Nov 10, 2019
1 parent 4e05115 commit 49bb856
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ class ReturnHighlighterColorSettingsPage : ColorSettingsPage, DisplayPrioritySor
arrayOf(AttributesDescriptor("Return keyword", AbstractReturnAnnotator.RETURN_KEYWORD))

override fun getHighlighter() = PlainSyntaxHighlighter()
override fun getAdditionalHighlightingTagToDescriptorMap() = null
override fun getColorDescriptors(): Array<ColorDescriptor> = ColorDescriptor.EMPTY_ARRAY
override fun getDemoText() = ""
override fun getDemoText() = """
final String value = getValue();
<return>return</return> value;
""".trimIndent()

override fun getAdditionalHighlightingTagToDescriptorMap() =
mapOf(Pair("return", AbstractReturnAnnotator.RETURN_KEYWORD))
}

0 comments on commit 49bb856

Please sign in to comment.