-
-
Notifications
You must be signed in to change notification settings - Fork 157
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 the right delimiter for modern fortran #186
Conversation
I also updated the buildbot because seeing it fail annoyed me. |
Thanks for the PR. Could you add samples for the new formats in the Also, could you check the indentation on the case..switch statement to keep it consistent with what's already there? |
I added some example code for new and old fortran and made the indentation consistent. |
This merge should probably be postponed for a bit, since the implemented changes cause incorrect coloring of strings |
Hi, no news about that for FreeForm? 🤔 |
Yeah, this is not fortran specific, so the PR is fine. I believe that in any language, if the delimiter character is used within a comment followed by one of the reserved characters, the same behaviour listed above will occur. I believe this would require a bit of a rewrite of the extension so as to escape string chars in all supported languages with comment characters in them. |
I made a new issue addressing this string highlighting behaviour #202 . |
Hi @aaron-bond any chance we could merge this to master? |
@gnikit your commits seem useful. |
The best solution would be for someone with write access to this repo to merge this branch and publish a new version of the extension, but for some reason this has yet to happen. You could go and manually edit @Arsennnic one more thing I should probably point out about this extension and Fortran code is that |
Thanks! I have managed to do this. I wrote this down for others who may need help. case "FortranFreeForm":
this.delimiter = "!";
break;
case "fortran_fixed-form":
this.delimiter = "c";
break; |
This merge solves the issue highlighted in #185 .
Might be worth adding some regression testing like the one already in place for this type of fortran comments.