-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Adding UO Razor Script to available languages #3309
Conversation
JS File Size Changes (gzipped)A total of 2 files have changed, with a combined diff of +1.22 KB (+48.2%).
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR @jaseowns!
I left you a few comments.
Regarding the order of tokens: Prism supports greedy tokens. Strings and comments are typically greedy, so e.g. " // foo "
is a string and // " foo "
is a comment despite both containing the syntax of the other. Please make all comment and string greedy (greedy: true
).
Also, please move all (the new) greedy tokens to the top of the grammar. This doesn't change the language, but it makes it faster.
Thank you for contributing @jaseowns! |
I play Ultima Online and we use a program called Razor to help script and hotkey certain actions. I'm making a website related to these scripts and would love to be able to use the react-syntax-highlighter importing this language file from Prism.
This is my first time submitting anything like this to open source so let me know if I need to change anything!
Thanks,
Jaseowns