-
Notifications
You must be signed in to change notification settings - Fork 426
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
Syntax highlighting for Crucible #13200
Comments
If there's not much more to it than their example shows (which I read as being a list of keywords sorted by first letter), then it should be fairly easy to take a list like this one and adapt it to that purpose: chapel/spec/chapel_listing.tex Lines 3 to 24 in 36d8bb9
|
(but I don't have or know how to use crucible to try it out for myself... maybe a side activity for CHIUW 2019's coding day?) |
Sure, we can take a look then. I also thought after I filed the issue here that I should file an issue at Atlassian: |
When the instructions say:
Do you know where that directory is, and can you say what other languages it contains? Do they all look as short and sweet as the example in the link you pointed to in the original issue text? |
I'll have to have @tjstavenger-pnnl help me out with this. But before we do that, somebody on Atlassion's JIRA thinks that "the Chapel language is not very popular one.". :) Somebody should show them. |
I've attached the cpp.def that Crucible uses for C++ files and the filename.map file that maps file names/extensions to the language definition file. To add Chapel support to Crucible we'd need to create a chapel.def and then map I renamed the files |
Oops, I forgot that we were going to look at this at CHIUW yesterday. I would guess that cloning cpp.def into chpl.def and putting the list of keywords from the chapel_listing.tex file I pointed to above into the respective section would get you 90% of the way to a working solution. I'm reluctant to take that step myself since I wouldn't have any way to verify whether it was working and iterate on a solution. |
I've made a custom Chapel syntax definition for our Crucible server. I added our current configuration to the Jira ticket @marcinz made. See my comment here: https://jira.atlassian.com/browse/CRUC-8404?focusedCommentId=2025188 |
Cool, thanks for that update, Tim! If Crucible isn't interested in taking your file such that any users would have access to it, you could PR it into the Chapel repository into a crucible-appropriate subdirectory of $CHPL_HOME/highlight/ such that other Chapel Crucible users would have access to it. |
I've pasted the comment from https://jira.atlassian.com/browse/CRUC-8404?focusedCommentId=2025188 in the details section below to keep the key details here in one place.
The next step is for somebody who can try this out with Atlassian Crucible to prepare a PR that creates a subdirectory in the highlight directory with README instructions on how to use it as well as the above file. |
Summary of Problem
We are using Atlassian Crucible for code review. They seem to use their own format for syntax highlighting:
https://confluence.atlassian.com/fishkb/defining-your-own-syntax-highlighting-in-crucible-or-fisheye-225120620.html
It would be nice to have an additional highlighter for Crucible.
The text was updated successfully, but these errors were encountered: