Skip to content

Fix code highlighting for languages with non-alphanumeric characters#2092

Merged
josevalim merged 2 commits intoelixir-lang:mainfrom
jonatanklosko:jk-lang-class
Feb 18, 2025
Merged

Fix code highlighting for languages with non-alphanumeric characters#2092
josevalim merged 2 commits intoelixir-lang:mainfrom
jonatanklosko:jk-lang-class

Conversation

@jonatanklosko
Copy link
Copy Markdown
Member

Currently ```c++ is not highlighted, because + does not match \w in the regex. We could allow list +, but I relaxed the regex to pick up any class name.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 18, 2025

@josevalim josevalim merged commit abe1c66 into elixir-lang:main Feb 18, 2025
5 checks passed
@josevalim
Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants