Skip to content

Remove lookbehinds from hljs grammar, close #11771 #11832

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

Merged

Conversation

TheElectronWill
Copy link
Contributor

@TheElectronWill TheElectronWill commented Mar 21, 2021

See #11772

The new grammar is guaranteed to be 100% lookbehind-free, while preserving the nice highlighting of the previous grammar.
I've also added the infix soft keyword and fixed a few things.

It was more elegant with lookbehinds, sadly some browsers don't support them.

Copy link
Contributor

@BarkingBad BarkingBad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@TheElectronWill TheElectronWill merged commit 00cf0b7 into scala:master Mar 23, 2021
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.

Missing syntax highlighting for code snippets in Safari browser
2 participants