Skip to content

fix(julia): improve tokenizer patterns #3886

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aannoo
Copy link

@aannoo aannoo commented Apr 7, 2025

This PR fixes issues with the Julia tokenizer:

  • Updated the character literal pattern to properly handle escape sequences, hex codes, and unicode characters
  • Improved operator pattern with proper lookbehind to handle operator contexts correctly
  • All tests are now passing

These changes ensure that Julia code is correctly highlighted, especially when dealing with character literals and operators in different contexts.

Fixed character literals and operator patterns in Julia tokenizer. Improved handling of escape sequences and operator contexts.
Copy link

netlify bot commented Apr 7, 2025

Deploy Preview for dev-prismjs-com ready!

Name Link
🔨 Latest commit 4157a9c
🔍 Latest deploy log https://app.netlify.com/sites/dev-prismjs-com/deploys/67f4311afbfb880008b7b397
😎 Deploy Preview https://deploy-preview-3886--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 site configuration.

Copy link

github-actions bot commented Apr 7, 2025

No JS Changes

Generated by 🚫 dangerJS against 4157a9c

Updated test expectations for Julia char and operator tests to match the new tokenizer implementation.
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.

1 participant