You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Syntax highlighting with code chunk options containing . don't work properly #14545
RStudio Edition : Desktop
RStudio Version : RStudio 2024.04.0-daily+689 "Chocolate Cosmos" Daily (9ee2b6131e42e36e31cec48a4eb88d2e700e272c, 2024-04-10) for macOS Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.04.0-daily+689 Chrome/120.0.6099.291 Electron/28.2.6 Safari/537.36, Quarto 1.4.553 (/Applications/quarto/bin/quarto)
OS Version : Mac OS Ventura 13.5 (22G74)
R Version : R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Steps to reproduce the problem
In an R Markdown file, add some code chunks with options that contain ., e.g., ref.label, out.width, etc.
Describe the problem in detail
These words are not highlighted like other code chunk options.
This is true in the visual editor as well.
Note, the broken syntax highlighting issue raised in #14544 is also visible in these images.
Describe the behavior you expected
I expected the code chunk options to be the same color, regardless of whether they're knitr options or also Quarto options.
Verified in RStudio Desktop 2024.04.0+725 on Windows 11 using the above code and messing around with it. Checked that both source and visual modes work correctly.
Activity
ronblum commentedon Apr 16, 2024
Reproducible:
ronblum commentedon Apr 22, 2024
Verified in RStudio Desktop 2024.04.0+725 on Windows 11 using the above code and messing around with it. Checked that both source and visual modes work correctly.