Skip to content

False positive syntax highlighting of strings containing format specifiers #223

@roboz0r

Description

@roboz0r

Describe the bug

The code highlights the %A even though it is definitely not a format string.

let notAFormatString: string = "not%AFormatString"

Expected behaviour

Only strings that are used as format string will highlight format specifiers

Screenshots

Image

Image

Image

Environment (please complete the following information):

  • OS: Windows 10
  • Ionide version: 7.21.2
  • VSCode version: 1.95.1
  • dotnet SDK version: 9.0.100-rc.2.24474.11

Additional context

A new user was confused by the coloration when they typed a URL that contained %20A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions