dparkins / language-fortran

Syntax highlighting for FORTRAN for atom
MIT License
35 stars 16 forks source link

Syntax highlighting stop working in the middle of he file. #117

Closed MRedies closed 4 years ago

MRedies commented 4 years ago

If I open this file in atom: https://iffgit.fz-juelich.de/fleur/fleur/raw/47fcb5b934927f0641c4dc1f0a7ba57d3c76c79d/hybrid/kp_perturbation.F90

The syntax highlighting will simply stop after line 263: grafik I am note sure what is the cause, but if I delete lines 263&264 is works again.

dparkins commented 4 years ago

Unfortunately your variable name 'enum' is the ENUMERATOR type (from Fortran2003), similar to the C enum. So the highlighter is waiting for 'end enum' in your code.

Have a look at http://fortranwiki.org/fortran/show/Typed+enumerators for a few more details.

MRedies commented 4 years ago

Ok. This seems to be the issue. I am ok with closing the issue. This seems to be a very specific case.