-
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
Add Keyman language highlighting #609
Conversation
@@ -0,0 +1,14 @@ | |||
Prism.languages.keyman = { | |||
'comment': /\b[cC]\s.*?(\r?\n|$)/, |
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.
You can simplify the regexp by using the i
flag.
Also, I think you can remove the last part ?(\r?\n|$)
since the dot .
does not match line feeds. (Unless you intentionally wanted to consume the line feed?)
Thanks for contributing. Please take a look at my comments. |
Thanks for the deep review. I think all comments addressed, a couple of extra minor tweaks as well. |
Thanks, this looks good to me now. |
Add Keyman language highlighting
Merged, thank you both! |
Thank you both as well -- that's how a pull request should always work :) Smooth as. |
Adds Keyman / KMFL language highlighting, as documented at http://help.keyman.com/developer/9.0/docs/