Skip to content

Syntax highlight confusing in unicode string formatting #2575

Closed

Description

@tgarm

When syntax highlight a unicode string, the syntax highlight does not very correct.
For instance, to format a value val in string may look like:

  • Without bracket
    WeChate216463751653492a1ec45db890cf583

This seems will format val世界 instead of val.

  • With bracket
    WeChat50ebba0060b5bfb3b4adfa2492c7cc74

This shows brackets are not needed.

It seems confusing how to correctly format val in this string in this syntax highlight.

Activity

  1. DanTup commented on Jun 22, 2020

    @DanTup
    Member

    Thanks for the report! There are quite a few issues with the current syntax highlighting. The goal is to fix them when adopting server-provided highlights through LSP (in #2202) since the server will produce reliable highlights using the real Dart parser, rather than using regex.

  2. added this to the On Deck milestone on Jun 22, 2020
  3. modified the milestones: On Deck, Backlog on Jul 2, 2020
  4. modified the milestones: Backlog, v3.18.0 on Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis server

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions