Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Add support for Fortran#448

Open
ZedThree wants to merge 7 commits intogooglearchive:masterfrom
ZedThree:fortran
Open

Add support for Fortran#448
ZedThree wants to merge 7 commits intogooglearchive:masterfrom
ZedThree:fortran

Conversation

@ZedThree
Copy link
Copy Markdown

Should work for most standard versions of Fortran, from 77 to 2008. Doesn't work so well for fixed-form source, e.g. "C" in the first column for comments.

Also, not sure how to generate the "correct" annotated output for the test case. Is there a tool in the repo?

@amroamroamro
Copy link
Copy Markdown
Contributor

there was also a lang-fortran.js proposed a few years ago: #78 (comment), just in case you want to compare against it and maybe even merge the two if there is a need...

@ZedThree
Copy link
Copy Markdown
Author

Thanks, looking at that helped me work out how to fix Fortran77 style comments!

@ZedThree
Copy link
Copy Markdown
Author

Hello, what do I need do to get this moving? I'd really like to get this merged so stackoverflow can use it :)

@YodaEmbedding
Copy link
Copy Markdown

Bump

@xinye83
Copy link
Copy Markdown

xinye83 commented Aug 21, 2019

Hey, thank you for making this! Three changes you can consider making to make it more robust.

  1. Add "end" keyword to "PR_KEYWORD".
  2. Add "logical" keyword to "PR_TYPE".
  3. If the first line is a comment, it won't be properly shown as a comment in the browser.

@noloader
Copy link
Copy Markdown

Bump...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants