Skip to content

Fix regex pattern for string matching in R grammar#4057

Open
alwaysalearner1234 wants to merge 1 commit intoPrismJS:v2from
alwaysalearner1234:patch-1
Open

Fix regex pattern for string matching in R grammar#4057
alwaysalearner1234 wants to merge 1 commit intoPrismJS:v2from
alwaysalearner1234:patch-1

Conversation

@alwaysalearner1234
Copy link

Summary

Fixes incorrect syntax highlighting of multiline strings in the R language
grammar by allowing newline characters inside quoted strings.

Details

  • Updated R string regex to support multiline strings
  • Aligns behavior with Prism fixes in other languages

Fixes #4040

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for dev-prismjs-com ready!

Name Link
🔨 Latest commit a719556
🔍 Latest deploy log https://app.netlify.com/projects/dev-prismjs-com/deploys/69822fcc394045000817e911
😎 Deploy Preview https://deploy-preview-4057--dev-prismjs-com.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

No JS Changes

Generated by 🚫 dangerJS against a719556

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.

Multiline R strings are not correctly highlighted

1 participant