I am using VIM 7.4 with syntax highlighting on some Fortran77 source code. One comment has a single apostrophe that never is repeated/closed (eg * Bert's bees), causing the remaining source code to be highlighted as a string.
! comment ignores apostrophe's as string c A comment where apostrophe's are considered strings * This comment is displaying fully as a string C Comment with the closing apostrophe, it's not great PROGRAM myexample END PROGRAM
My .vimrc has been cleaned to only contain :syntax on and my .vim folder has been deleted. This is what I am seeing in Putty:
I would assume the problem is the default fortran.vim file isn't correctly grabbing the comment labels for c, C, and d, but is working for ! comments (where it correctly ignores the apostrophe).