Skip to content

Leading +/- in number not highlighed correctly #9

@aDotInTheVoid

Description

@aDotInTheVoid

"normal 10 leading+ +10 leading- -10 leading+. +10.0 leading-. -10.0" The 10 with no decimal is hilighed in blue, but everything else is green

VSCode recognizes +10 as a entity.name.tag but 10 as constant.numeric.integer.decimal.rust

The same source as before, but with a pop up below the +10, showing entity.name.tag
The same source as before, but with a pop up below the +10, showing constant.numeric.integer.decimal.rust

This ultimately occurs because +10 is both a valid node name, and entry. Ideally +10 should be highlighted differently in the document +10 +10, but I don't thing this is achievable with regex's. But I think if +10 can only be a number or identifier, it's more likely to be a number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions