Skip to content

R highlighting incorrect due to bad regex #1430

@alexr00

Description

@alexr00

Describe the bug
The existing regexes escape '.' inconsistently, e.g. we see as\.table.default. The latter '.' will match anything, so we can get weird highlighting:

To Reproduce
image

Can you fix this issue by yourself? (We appreciate the help)

Yes / No
This issue was originally filed by @MichaelChirico, and they made a PR to the VS Code repo: microsoft/vscode#194352

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