Here is a sample of what I'm referring to:  (need I say to ignore the
ruler line?)
----+----1----+----2----+----3----+----4----+----5----+----6----
+----7----+----8
       *  This line works fine since it starts in column 7 as does the
next
       *_*_*^**^*_*_*

       *  The 2nd line below, while syntactically correct, is flagged
on the screen as being an error.
                        compute A = ((B + C) / D)
                                         * ((E * F) + G)

I acknowledge that an obvious solution at least for this elementary
example would be to move the
asterisk from where it is to the end of the previous line but
occassionally in real life the line is too
long, e.g. due to long field names, forcing the continuation as above.

Lynn


On Nov 14, 7:01 am, Ben Schmidt <[EMAIL PROTECTED]> wrote:
> > In COBOL an asterisk has 2 purposes.
> > First if it's in column 7 it signifies that line as being a coment.
> > Secondly, if it appears in any colum greater than 11 it is used as a
> > mathamatical operator.
>
> > The editor correctly flags the lines with the asterisk in column 7 as
> > a comment, however, should that character appear anywhere else on the
> > line it flags this line as a syntax error which can be fairly
> > distracting and annoying.
>
> It doesn't always mark it as an error; I can get it to appear normally,
> e.g. if I type 3 * 4 with a large indent. But I don't know COBOL, so I
> can't tell if what it's doing is right or wrong. Perhaps you could post
> some example code where the highlighting is wrong and explain why, and
> then we can help with the syntax file? The person listed as the
> maintainer of the syntax file may also be worth contacting.
>
> Ben.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to