Skip to content

Apostrophe in star comment breaking the color code and readability  #855

@amalcor

Description

@amalcor

Is there an existing issue for this?

  • I have searched the existing issues

Description

Hello,
I'm quite new to fotran, and currently facing two problems with the fortran extension a lot of comment with an apostrophe : ' character and also starting with a star : *.

If a comment like that exists in a F90 file, it is not recognized as a command, and the apostrophe breaks the readability of the rest of the file :
*----- Excuse me, I'm a simple comment

Is this a bug or issue of the plugin, or are there any tricks to fix this issue locally, and activate the parsing of * starting line as comment in F90 files ?

Exemples :

program hello !---- Test' print *, 'Hello World' end program hello
works but :

program hello *---- Test' print *, 'Hello World' end program hello
don't

Screenshots

No response

Expected Behaviour

Appropriate formatting

Version of Modern Fortran

v3.4.2023032301

Version of Visual Studio Code

v1.76

Platform and Architecture

Linux
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions