-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Source markdown editor uses R code autocompletion and syntax highlighting for third-party knitr engines #12767
Comments
Thanks @andresrcs! I can also reproduce this in RStudio Desktop 2022.07.2+576, so it's been this way for a while (if not always). Also, from what I can tell, this works correctly in visual mode |
See: rstudio/src/gwt/acesupport/acemode/rmarkdown_highlight_rules.js Lines 157 to 165 in 50250e0
We could add 'prql' as a language for which we should use SQL-style highlighting. Would you be willing to submit a PR? |
Thanks for suggestion. As far as the source code is concerned, do we need Ace format files? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions. |
unstale |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions. |
unstale |
System details
Steps to reproduce the problem
Describe the problem in detail
The code chunk has R code autocompletion and syntax highlighting (in source mode) even if I'm using a different language, PRQL.
Describe the behavior you expected
Ideally, I would like the code autocompletion and syntax highlighting to be extensible by third-party packages but I think at least it shouldn't have the same behavior as with R code.
The text was updated successfully, but these errors were encountered: