Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roxygen examples and examplesif not the same #2318

Open
Tracked by #2011
EmilHvitfeldt opened this issue Feb 23, 2024 · 2 comments
Open
Tracked by #2011

roxygen examples and examplesif not the same #2318

EmilHvitfeldt opened this issue Feb 23, 2024 · 2 comments
Labels
bug Something isn't working lang: r

Comments

@EmilHvitfeldt
Copy link

Positron Version:

Positron Version: 2024.02.0 (Universal) build 1537
Code - OSS Version: 1.86.0
Commit: 9f49f1d
Date: 2024-02-16T18:29:32.651Z
Electron: 27.2.3
ElectronBuildId: undefined
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.3.0

Steps to reproduce the issue:

#' @examples
#' 1 + 1

#' @examplesIf TRUE
#' 1 + 1

What did you expect to happen?

The text highlighting to be the same for @examples and @examplesIf. Right now there is no highlighting for @examplesIf.

Kapture.2024-02-23.at.15.12.49.mp4

Were there any error messages in the output or Developer Tools console?

Nope

@jennybc
Copy link
Member

jennybc commented Feb 24, 2024

Related to #1360. Specifically #1360 (comment) suggests where to look in the grammar re: addressing this.

@wesm wesm added bug Something isn't working lang: r labels Feb 29, 2024
@DavisVaughan
Copy link
Contributor

This can be particularly weird sometimes because it treats it like something else, and can highlight strange things

Screenshot 2024-04-20 at 9 07 43 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lang: r
Projects
None yet
Development

No branches or pull requests

5 participants