dparkins / language-fortran

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

'Fortran - Fixed Form' highlights after column 72 #81

Closed DrCrlsn closed 7 years ago

DrCrlsn commented 7 years ago

The 'Fortran - Fixed Form' grammar highlights even after column 72. And the highlight seems to depend on the particular Fortran statement.

I recommend applying the comment highlight to anything after column 72.

Thanks.

72column

tomedunn commented 7 years ago

Thanks for posting! I was able to throw together a quick partial fix to this issue that will hopefully be merged in soon. The fix at least addresses cases like the one you show in your example. It won't work in all cases however due to the way Atom handles grammar injections. From what I understand they are currently working on implementing an update to the grammar engine that should make a full fix possible soon though.

DrCrlsn commented 7 years ago

Thanks very much for your quick response. Your fixes will be a good learning tool for me.