Skip to content

Fix export symbol highlighting in both Dazzle themes#5

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-2
Draft

Fix export symbol highlighting in both Dazzle themes#5
Copilot wants to merge 3 commits intomainfrom
copilot/fix-2

Conversation

Copy link
Copy Markdown

Copilot AI commented Jul 16, 2025

Export symbols were not being highlighted consistently with the theme's color scheme. In the original issue, export default keywords were correctly highlighted in yellow/red, but the exported identifier (AuxmodoHome) remained unstyled (white/default color).

Before

Original Issue

After

Fixed Export Highlighting

Changes Made

  • Added comprehensive token color rules for exported identifiers in both dark and light themes
  • Exported symbols (variables, functions, classes) now use the blue entity color:
    • Dark theme: #34b3de
    • Light theme: #00acd7
  • Added support for various export-related token scopes:
    • meta.export variable.other.readwrite
    • meta.export entity.name.function
    • meta.export entity.name.class
    • meta.export entity.name.type
    • variable.other.readwrite.alias
    • entity.name.function.export
    • entity.name.class.export
    • variable.language.default.export

Example

export default AuxmodoHome;           // "AuxmodoHome" now highlighted in blue
export const namedExport = "test";    // "namedExport" now highlighted in blue
export function exportedFunction() {} // "exportedFunction" now highlighted in blue
export class ExportedClass {}         // "ExportedClass" now highlighted in blue

The exported identifiers now properly match the theme's entity color scheme, making the code more visually consistent and easier to read.

Fixes #2.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits July 16, 2025 22:08
Co-authored-by: csfh <5760821+csfh@users.noreply.github.com>
Co-authored-by: csfh <5760821+csfh@users.noreply.github.com>
Copilot AI changed the title [WIP] Export symbols should be highlighted Fix export symbol highlighting in both Dazzle themes Jul 16, 2025
Copilot AI requested a review from csfh July 16, 2025 22:15
Copilot finished work on behalf of csfh July 16, 2025 22:15
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.

Export symbols should be highlighted

2 participants