Skip to content

Conversation

@MorphCodeBot
Copy link
Collaborator

This PR fixes the inconsistent syntax highlighting of brackets and colons in Kotlin class inheritance contexts.

Problem:

  • Brackets were highlighted with different colors when used in class inheritance syntax
  • This was particularly noticeable in VSCode markdown preview and other contexts

Changes:

  • Modified the Kotlin language definition to handle colons consistently in inheritance contexts
  • Updated type mode patterns to properly handle inheritance syntax
  • Ensured consistent coloring of brackets and colons in class declarations

Testing:

  • Verified fix using provided test case:
open class Tag

class TABLE: Tag {
  fun tr(init: TR.() -> Unit)
}

class TR: Tag {
  fun td(init: TD.() -> Unit)
}

class TD: Tag

Visual improvement:

  • Brackets and colons now maintain consistent coloring throughout inheritance declarations
  • Matches the expected behavior shown in the ticket's reference image

Additional ticket processing details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants