Thursday, February 16, 2012

Re: Change needed in cobol.vim syntax file.

On Wed, 15 Feb 2012 16:38:47 -0800 (PST)
John Little <john.b.little@gmail.com> wrote:

> On Feb 16, 10:26 am, john Culleton <J...@wexfordpress.com> wrote:
> >
> > I started with pre-COBOL 68, in 1968.  The IF statement and the
> > AT END statements were legal then and still are legal in all the
> > compilers I have used.  I am reasonably certain they were legal
> > in the very first COBOL compiler written by Grace Murray Hopper
> > and her crew.   So there is a fault in cobol.vim. Yes, I
> > have cobol_legacy_code set. That should not cause IF and END to
> > be highlighted as errors. There is a problem with cobol.vim, like
> > it or not.
>
> (Hey, we're friendlier than that here. Such belaboured sarcasm may
> not be appreciated.)

Well I did what I swore I wouldn't do, hacked the cobol.vim file
blindly. I inserted the keywords IF and END in the big list of
COBOL reserved words. Now it works, at least enough to satisfy me.
I left in the line:

syn match cobolReserved contained "\<\(IF\|INVALID\|END\|EOP\)\>"

I have no idea what it does, but apparently it does no harm.

Thanks to all who replied. If anyone wants a copy of my hacked
cobol.vim just drop me a line.
--
John Culleton

--
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: