Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!drutx!druil!lat From: lat@druil.UUCP (TepperL) Newsgroups: net.lang Subject: Re: More (ad nauseum) on removing punctuation in programming languages Message-ID: <207@druil.UUCP> Date: Fri, 7-Nov-86 10:47:30 EST Article-I.D.: druil.207 Posted: Fri Nov 7 10:47:30 1986 Date-Received: Sat, 8-Nov-86 05:31:02 EST References: <21836@rochester.ARPA> <2642@hammer.TEK.COM> <694@looking.UUCP> <1303@ttrdc.UUCP> Organization: AT&T Information Systems Labs, Denver, Co Lines: 18 Summary: On finding curly braces with vi... In article <1303@ttrdc.UUCP>, levy@ttrdc.UUCP writes: > Well, I went to the bottom of the code, put the cursor on the curly brace > there, and hit '%' again. It matched with the second curly brace in from > the top. I start moving in, matching pair against pair, for several iter- > ations. Then '%' put me right in the middle of a printf statement: > > (void) printf("junkjunkjunk{trashtrashtrash\n"); > ^ > |-- see the "hidden" curly brace? > > Oh, well... *klunk* There's any easy way around this. I've even used it before: (void) printf("junkjunkjunk{trashtrashtrash\n"); /* This } matches the one in the printf above. Vi is happy. */ -- Larry Tepper {ihnp4 | allegra}!drutx!druil!lat +1-303-538-1759