Skip to content

Conversation

@kylebutts
Copy link

There is now a new preferred language syntax for the R language (posit-dev/positron#5017). Given this produces better quality highlighting and is much more highly maintained than the previous one, I suggest changing to this one.

E.g. before, function calls were inconsistently highlighted:
Before:
image
After:
image

Before:
image
After:
image

@netlify
Copy link

netlify bot commented Mar 4, 2025

Deploy Preview for textmate-grammars-themes failed.

Name Link
🔨 Latest commit 76a51ef
🔍 Latest deploy log https://app.netlify.com/sites/textmate-grammars-themes/deploys/67c78ac44578860008652564

@antfu
Copy link
Member

antfu commented Mar 5, 2025

I am concerned about the license, I think it's a bit tricky as it's no longer a no-brainer to bundle and redistribute

@kylebutts
Copy link
Author

@lionel- I'm wondering if there's a way to use the updated syntax. Shiki uses vscode grammars to produce high-quality code highlighting for html output. Perhaps, we could move the updated syntax .json back to the vscode-R repository?

@lionel-
Copy link

lionel- commented Mar 11, 2025

Hi @kylebutts. In the longer term we might move the language support bits of positron-r into the MIT licensed Air extension. We could potentially make a copy of the grammar there earlier if that would help you.

@kylebutts
Copy link
Author

We could potentially make a copy of the grammar there earlier if that would help you.

If possible, that would be awesome!

@kylebutts
Copy link
Author

We could potentially make a copy of the grammar there earlier if that would help you.

If possible, that would be awesome!

Hi @lionel-, any chance these grammars have made it over to Air?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants