You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed fypp support has recently been added, thanks a lot!! I understand it's still new, but I've noticed a little bug:
First (I suspect this is something to do with my configuration?) if my file extension is .fpp then it looks like nothing is recognised, there are red squiggles everywhere (I have it configured for Fortran). If I rename it to have .fypp extension and don't change anything else, suddenly it's fine.
If I have a derived type that uses the preprocessor, then any code that comes after that derived type loses all syntax highlighting.
In the attached screenshot, all the highlighting goes back the way I expect it to be if I:
rename to .fypp
remove the derived type
Screenshots
Code Example
program highlighting_eg
use iso_fortran_env, only: sp => real32, dp => real64
implicit none
#:for dtype in ['real', 'complex']
#:for prec in ['sp', 'dp']
${dtype}$(${prec}$) :: a_${dtype}$_${prec}$
#:endfor
#:endfor
#:for dtype in ['real', 'complex']
type literally_anything_${dtype}$_t
endtype literally_anything_${dtype}$_t
#:endfor
containssubroutineprint(arg)
real, intent(in) :: arg
print*, arg
endsubroutine printend program highlighting_eg
Fortran Version (Free/Fixed Form)
Free Form e.g. F90+
Version of Modern Fortran
v3.2.0
Version of Visual Studio Code
v1.72.2
Platform and Architecture
Linux (OpenSUSE)
Additional Information
I noticed my other issue got sent into discussion. Should this also be there?
The text was updated successfully, but these errors were encountered:
So the main thing you noticed is a Duplicate issue of #617. I will not close this just yet as a duplicate because I want to check what you mentioned about the extensions. That is strange indeed.
So the main thing you noticed is a Duplicate issue of #617. I will not close this just yet as a duplicate because I want to check what you mentioned about the extensions. That is strange indeed.
Ah sorry, missed the type definition in that issue. Anyway, the extension issue is easy to work around, though a little inconvenient.
I am not able to reproduce the behaviour you pointed out. I was able to get fypp diagnostics for the .fpp file. Is there something else I should be doing to recreate your issue?
Is there an existing issue for this?
Description
I noticed fypp support has recently been added, thanks a lot!! I understand it's still new, but I've noticed a little bug:
.fpp
then it looks like nothing is recognised, there are red squiggles everywhere (I have it configured for Fortran). If I rename it to have.fypp
extension and don't change anything else, suddenly it's fine.In the attached screenshot, all the highlighting goes back the way I expect it to be if I:
.fypp
Screenshots
Code Example
Fortran Version (Free/Fixed Form)
Free Form e.g. F90+
Version of Modern Fortran
v3.2.0
Version of Visual Studio Code
v1.72.2
Platform and Architecture
Linux (OpenSUSE)
Additional Information
I noticed my other issue got sent into discussion. Should this also be there?
The text was updated successfully, but these errors were encountered: