-
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
Added Support for Bro language #925
Conversation
Added support for Bro language. Please let me know if you need any additions or changes. |
Please ignore the change I made to examples.js -- I did that for local testing purposes. |
Hi @wayward710 Thanks for your contribution! Bro is a really interesting language. Here are some things I've noticed about your PR:
|
|
||
'boolean': /\b(T|F)\b/, | ||
|
||
'keyword': [ |
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 use a single regex instead of the array here. You should also use a non-capturing group.
I am away for the weekend, so I cannot answer any questions until Monday... |
Thanks for your feedback! I'm also traveling this weekend, so it may be a few days before I can work on the changes. |
OK, I think I fixed the issues that you pointed out. Please let me know if anything else needs to be changed. |
Hi @wayward710, Thanks! It looks really nice now. There are only a few small issues. Other than that I think it is ready to be merged.
|
OK, I fixed the whitespaces, reordered the tokens, fixed the italics, and used Gulp for magnification instead of the other tool. |
Thanks for your contribution! It would be really nice if you could create a few test cases for the Bro language. The tests are in the directory |
I missed that this was a PR for the master branch. You should create your PR for the gh-pages branch. I moved your commits there and removed them from master. |
Guidelines regarding how to write tests can be found here: http://prismjs.com/test-suite.html |
OK, and use the gh-pages branch for the test suites? |
Yes. All PRs should be done on gh-pages ;) |
Added support for Bro language.