Skip to content

C# syntax highlight: star (multiplication) in function-call mistakenly highlighted #99

Closed

Description

@aeschli

From @CCludts on February 13, 2018 22:20

  • VSCode Version: 1.20.0
  • OS Version: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592). Windows10 Pro 64x

Steps to Reproduce:

image

  1. Any file with c# language-mode (new Untitled file works, saving is irrelevant)
  2. Multiply(n1 * n2);

Does this issue occur when all extensions are disabled?: Yes

edit: this issue already existed on the previous release of VSCode

Copied from original issue: microsoft/vscode#43621

Activity

  1. CCludts commented on Feb 17, 2018

    @CCludts

    Also shows up in for loops
    image

    but not in while loops!
    image

    edit: the while loop I posted doesnt make any sense syntactically, in regular while loops it's all good
    image

  2. michaelblyons commented on Feb 17, 2018

    @michaelblyons

    Looks like the int i part of the loops has different scope names as well.

  3. DustinCampbell commented on Feb 17, 2018

    @DustinCampbell
    Member

    It looks to me like a bug with identifying pointer types.

  4. DustinCampbell commented on Feb 17, 2018

    @DustinCampbell
    Member

    since syntax highlighting is achieved with regular expressions, that's particularly tricky.

  5. DustinCampbell commented on May 10, 2018

    @DustinCampbell
    Member

    This should be fixed now. We've decided to prefer multiplication over pointer types.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions