This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to find missing "?


On Mon, 2003-08-18 at 15:27, Andy Jackman wrote:
> Oh wow. I just discovered VIM enhanced. I had to install it.
> <retorical>Why do we have such a wonderful editor under linux and then
> by default install the naff version? </retorical> To think I've been
> editing code for nearly a year using black and white :(.

Try "gvim" for a real thrill.  It should already be installed if you're
running a stock Linux distribution like Redhat.

> Thanks Andreas,
> Andy.
> 
> Andreas Schwab wrote:
> > 
> > Andy Jackman <ajackman@deckertelecom.net> writes:
> > 
> > |> Hi,
> > |> When compiling a C program I get an error:
> > |>
> > |> test.c:1047:65: missing terminating " character.
> > |>
> > |> I know what this is - I've left a " out in a string literal somewhere
> > |> (not on line 1047 where the last " in my program appears), but I'm not
> > |> clever enough to find it in 1000 lines of code (using vi) without
> > |> searching for every " and then manually inspecting the line.
> > 
> > Try using syntax hightlighting (in vim or Emacs), which should give you a
> > good idea where the quote it missing.
> > 
> > |> I've started doing that, but I figure someone has a better way to find
> > |> a line that contains only one " (since this is likely to be where the
> > |> error is).
> > 
> > See grep(1), regex(7).
> > 
> > Andreas.
> > 
> > --
> > Andreas Schwab, SuSE Labs, schwab@suse.de
> > SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 NÃrnberg
> > Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> > "And now for something completely different."
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]