On Mi, 15 Feb 2012, john Culleton wrote:
> On Wed, 15 Feb 2012 08:48:49 +0100 Christian Brabandt
> <cblists@256bit.org> wrote:
>
> > Hi john!
> >
>
> > :let cobol_legacy_code = 1
> >
> > See, if this variable exists in your cobol file and enter:
> >
> > :echo cobol_legacy_code
> >
> > If you don't get an error, simply unlet that varible:
> >
> > :unlet cobol_legacy_code
> >
> > and do a
> >
> > :filetype detect
> >
> > The highlighting should than vanish. You then need to find out,
> > where you set this variable (I suspect either in your .vimrc,
> > in a ftplugin/cobol.vim or even after/ftplugin/cobol.vim file)
> >
> > regards, Christian
> >
> Well I write in COBOL 85 in the traditional fixed format. See my
> previous example.
>
> 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.
Be it a fault or not, it is configurable. As I don't know Cobol, I can't
judge. But I wouldn't call it a bug yet.
> Yes, I have cobol_legacy_code set. That should not cause IF and END to
> be highlighted as errors.
I don't know whether it should or not highlight it as errors and I
really don't care. But this is the way it is in the syntax file and you
*can* configure it.
So maybe, just configure it and don't complain here about IF and END
being allowed in Cobol or not.
> There is a problem with cobol.vim, like it or not.
I couldn't care less. I am just trying to help *you*. Seems, you don't
want my help.
> If I unset cobol_legacy_code, IF no longer causes errors.
See, it works.
> But line numbers in columns 1-6 are now highlighted as errors.
Now this could be an error. I think you want to discuss this with the
maintainer of the syntax file. But also this behaviour can be
configured:
Create a file ~/.vim/after/syntax/cobol and create non-existing
directories and in there put
hi link CobolMarker Comment
Like it or not, it is all configurable and I don't see an error here.
However if you want to complain about something, just discuss this with
the maintainer of the syntax file or simply create your own better
syntax file.
regards,
Christian
--
--
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:
Post a Comment