A line starting with (!) is not recognized as a comment in .f files
guziy opened this issue · 2 comments
guziy commented
tomedunn commented
The grammar is treating the .f
file as adhering to a different Fortran standard, the Fortran 1977 standard to be exact, where !
is not recognized as a comment marker. You should be able to force Atom to apply the "modern" Fortran grammar to .f
files by modifying your init.coffee
file as discussed here. For your case try
path = require 'path'
atom.workspace.observeTextEditors (editor) ->
if path.extname(editor.getPath()) in [".f"]
editor.setGrammar(atom.grammars.grammarForScopeName('source.fortran.modern'))
guziy commented
Thanks Tom:
It works very nicely.
Cheers