Skip to content

Comment Doc directives colouring and completion #61108

@FMorschel

Description

@FMorschel

In Dart, we have things like comment references that are highlighted with the same colour as the declaration. This helps the user know that part of the comment is not comment-like but will be shown in the comment.

I'd like to request that we colour Dart doc directives too. So things like {@template ...}, {@macro ...} and similar are differentiated for the user. And probably completion too, since this would align with the doc_directive_unknown warning since it already triggers for invalid values.

I'd say they could be colored as annotations, but this is just a suggestion.

CC @srawlins @bwilkerson

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions