If you have experience with (Ruby) regular expressions, you can contribute. Or if you can think of other good code examples, you are welcome to give me links or comment on the issue over at GitHub.
I have a customized set of rules for SAS code using prism.js -- that's what we use for SAS code highlighting here on SAS communities. I'll be happy to supply that if you think it might help. It's regex-based, along with a CSS file for how to color.
Yes, mine has more stuff!
The prism-sas.js contains basic regex patterns that are matched in precedence order. It will match patterns from the top rule down to the bottom, and when it finds a match for the token it exits. If you write a rule that isn't getting hit, it's because the token is hitting some other rule first.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.