Skip to content

Color decorators do not work inside string #6603

@jberkh

Description

@jberkh

System details:

Positron and OS details:

Positron Version: 2025.03.0 (user setup) build 116
Code - OSS Version: 1.96.0
Commit: 7f0f938
Date: 2025-03-01T19:05:24.180Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100

Interpreter details:

R.4.4.2

Describe the issue:

Color decorators written as as #RRGGBB do not work when the hash symbol is immediately preceded by a " or '
This issue seems positron-specific as it does not occur in my VSCode 1.97.2 install.

Steps to reproduce the issue:

Image

Expected or desired behavior:

For .R files, I would expect the color decorator scope for the #RRGGBB(AA) notation to be limited to (or at least work for) "#RRGGBB" and "#RRGGBBAA".

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uiIssues related to UI category.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions