For Programmers: Free Programming Magazines  


Home > Archive > Cobol > January 2005 > cobolCondFlow in cobol.vim









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cobolCondFlow in cobol.vim
kjdkld@_nospam_hotmail.com

2005-01-21, 3:55 pm

This is for all you cobol vim syntax gurus out there. There is a region
in the cobol.vim maintained by Sitaram Chamarty and James Mitchell
called "cobolCondFlow" that turns red all the non-reserved words in an
"if" statement. Makes it easier at times to see if your if was
terminated.

Anyway, the current version only uses a period to end the region. I
don't use periods (I prefer END-IF) so everything gets highlighted red
until it encounters a period. I've tried everything I can think of to
get it to stop the region with an END-IF but it doesn't work. I'm
fairly sure it has something to with END-IF being a reserved word (I
can get it to stop the highlighting with END-I but not END-IF).
Please help!

Kris Dames

LX-i

2005-01-23, 8:55 pm

kjdkld@_nospam_hotmail.com wrote:
> This is for all you cobol vim syntax gurus out there. There is a region
> in the cobol.vim maintained by Sitaram Chamarty and James Mitchell
> called "cobolCondFlow" that turns red all the non-reserved words in an
> "if" statement. Makes it easier at times to see if your if was
> terminated.
>
> Anyway, the current version only uses a period to end the region. I
> don't use periods (I prefer END-IF) so everything gets highlighted red
> until it encounters a period. I've tried everything I can think of to
> get it to stop the region with an END-IF but it doesn't work. I'm
> fairly sure it has something to with END-IF being a reserved word (I
> can get it to stop the highlighting with END-I but not END-IF).
> Please help!


I never could get vim to do COBOL worth a darn... Our shop standard has
footprints from column 73 on, and so it turned every line red.


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
~ / \ / ~ Live from Montgomery, AL! ~
~ / \/ o ~ ~
~ / /\ - | ~ LXi0007@Netscape.net ~
~ _____ / \ | ~ http://www.knology.net/~mopsmom/daniel ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ I do not read e-mail at the above address ~
~ Please see website if you wish to contact me privately ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ ~
~ !O M-- V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e ~
~ h---- r+++ z++++ ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com