Tuesday, February 14, 2012

Re: Change needed in cobol.vim syntax file.

On Tue, 14 Feb 2012 08:43:28 +0000
Andrew Long <andrew.long@mac.com> wrote:

>
> On 14 Feb 2012, at 00:02, john Culleton wrote:
>
> > In the cobol.vim file, something causes all sentences starting
> > with "if" to be colored red just like an error. The "if" verb is
> > perfectly legitimate in COBOL, I have used it since 1968.
>
> I haven't been using it for *quire* that long, but I agree with you
> that it is perfectly legal!
>
> I have had odd syntax colouring in COBOL files at beginning of lines
> on occasion, but it always turns out to be the presence of a 'tab'
> character instead of leading spaces that makes text that *looks* like
> it is in column 12 actually start to the left of that, in area A, or
> even in the line number field.
>
> Not saying that is your problem here, but it's worth a look.
>
> Regards, Andy
>
Thanks for your reply. I don't use tabs when writing COBOL for
just that reason. It is only the reserved word "IF" or "if" that causes
the problem. I understand that there was an improved syntax file
from a site belonging to Sitaram but that seems to have been
taken over by someone selling insurance.

I can try hacking the existing cobol.vim file but I don't know
the intricacies of vim syntax files. I thought someone here could
help.

I'll try writing Tim Pope.


--
John Culleton
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html

"Create Book Covers with Scribus"
http://www.booklocker.com/books/4055.html

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: