Skip to content

Commit

Permalink
feat(devins-lang): add support for highlighting single-line comments #…
Browse files Browse the repository at this point in the history
…100

Add support for highlighting single-line comments in DevIns language syntax highlighter. This change sets the text attributes for comments to the color defined for line comments.
  • Loading branch information
phodal committed Mar 22, 2024
1 parent e24f874 commit 64e5811
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -20,6 +20,8 @@ class DevInSyntaxHighlighter : SyntaxHighlighter {
private val ATTRIBUTES: MutableMap<IElementType, TextAttributesKey> = HashMap()

init {
ATTRIBUTES[DevInTypes.COMMENTS] = DefaultLanguageHighlighterColors.LINE_COMMENT

ATTRIBUTES[DevInTypes.VARIABLE_START] = DefaultLanguageHighlighterColors.KEYWORD
ATTRIBUTES[DevInTypes.VARIABLE_ID] = DefaultLanguageHighlighterColors.CONSTANT

Expand Down

0 comments on commit 64e5811

Please sign in to comment.