-
-
Notifications
You must be signed in to change notification settings - Fork 35
OpenACC highlighting #184
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
Comments
We use |
This is the official site of OpenACC: https://www.openacc.org/ |
Thanks for the link, I had a look and from what I can tell it needs a bit of work to implement since we will have to write the regex json file ourselves. I do think however (from quickly looking over the syntax of both) that there is substantial overlap between OpenACC and OpenMP syntax so we might be able to get away with some quick and dirty copy-pasting as a first attempt. |
Please see #224. |
Kinda funny, I happened to already be working on this before I saw your comment. Indeed there's a significant amount of overlap with OpenMP and I used its syntax as the starting point. It appears to me that anything that includes |
I would suggest you open an issue for this, how it should be vs how it currently is and we can tackle it ASAP.
About this, I would be very cautious when doing changes in the highlighting bit of the extension since it is not tested in any way. With that being said, is the change expected to cause OpenMP to fail at highlighting certain pieces of code. In general I think that the highlighting for OpenXXX stuff should be using the same base where possible, like the preprocessor, so it might be worth loading bits of OpenMP to the OpenACC instead of copy-pasting the file. |
@gnikit Is there an eta for when a new build will go into the market that includes this support? |
@krvajal could we issue a new version from the existing master? We can deal with PRs #238 and #244 in the next release. @jefflarkin We need to figure out a way for us to publish to the Microsoft store from within github without having to call on krvajal every time. |
I see in the marketplace that the extension has updated to 2.3.0 and lists OpenACC support, but it doesn't appear to be firing the syntax highlighting on any of my computers. I also notice that there's no 2.3.0 release shown on GitHub. Was the extension actually updated? Thanks. |
Hi @jefflarkin I believe it has. This is what I get when I open the test file |
Yeah, that's not right, it's only highlighting keywords that are common with OpenMP. When I submitted the pull request nearly every green word in that screenshot was highlighted red. I'm trying to rebuild on my machine to create a screenshot of what I was getting at that time. |
You don't have to rebuild, if the highlighting is not getting picked up it has to do with the |
Okay so good news and bad news. I just had a quick look and it appears that the openacc scope is not the one being used, but rather the extension uses the openmp one, bad news is I have no idea how to fix it yet. This looks like it should have a relatively easy resolution. I will have a look later tonight. |
I found the bug, the regex for OpenMP was too aggressive. I will open a PR shortly and see this is merged into another release but in the meantime you might want to go change line 32 in |
Darn! I thought we'd fixed the over-greedy OpenMP regexp, but I guess this slipped past. Thanks for debugging. |
I found that
OpenMP
codes beginning with!$
can be correctly highlighted. Is it possible to highlightOpenACC
codes, just like what has been done onOMP
codes?The text was updated successfully, but these errors were encountered: