Syntax highlighter does not recognise .F/.F90 files as Fortran
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fluidity |
Fix Released
|
Low
|
Unassigned | ||
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
Hi,
I am part of a team (fluidity-core) developing a scientific model in Fortran 90 on launchpad.
Launchpad uses pygments to do the syntax highlighting in its code browser, correct? Up until recently, pygments had a bug in it where .f/.f90 files were recognised as Fortran and highlighted as such, but .F/.F90 files were not. (The universal convention in the Fortran community is that .F/.F90 means it should be passed through the C preprocessor, but .f/.f90 should not.)
I reported this bug to pygments, and it has now been resolved in its trunk:
https:/
Would it be possible to incorporate this fix into the version of pygments that launchpad uses?
Thanks,
Patrick
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: codebrowse |
Changed in fluidity: | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in fluidity: | |
status: | Triaged → Fix Released |
Oh, I meant to give you a quick url where you can see the problem. Here is one file in a branch of mine:
http:// bazaar. launchpad. net/~fluidity- core/fluidity/ adjoint/ view/head: /adjoint/ Adjoint_ Functional_ Evaluation. F90
As you can see, the syntax highlighting is all wrong. I'm pretty sure that incorporating the patch at /bitbucket. org/birkenfeld/ pygments- main/changeset/ cfa0f44daad1
https:/
would fix this problem.