Why lone line in fortran code in one part is highlighted and become like comment?

379 Views Asked by At

I'm trying to write a fortran code for 1 phase flow in porous media. In discretized equations and other long line I have a below problem as you see in the picture. After that highlighted phrase my code become like comment. Can anyone help me?

1

There are 1 best solutions below

1
zvi On

According to this:

In its current state, the syntax highlighting for fixed-form Fortran in the extension only supports a line length of 72 characters. Anything after column 72 appears as comments (green) in the source code, which also affects the appearance of the following lines (when a closing parenthesis is in this green region for example)

You can change it on fortran_fixed-form.tmLanguage.json file or on the VS code settings.