From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30387 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: verb-c Date: Fri, 18 Aug 2006 10:37:31 +0200 Message-ID: <44E57C4B.6040402@wxs.nl> References: <44E59005.25701.136880@wwl.musensturm.de> <44E57A2F.8060405@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155890284 28326 80.91.229.2 (18 Aug 2006 08:38:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2006 08:38:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 18 10:38:00 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GDzrI-0002Bc-FL for gctc-ntg-context-518@m.gmane.org; Fri, 18 Aug 2006 10:37:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3155B1FED0; Fri, 18 Aug 2006 10:37:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06220-04-7; Fri, 18 Aug 2006 10:37:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 16D911FEBE; Fri, 18 Aug 2006 10:37:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 133891FEBE for ; Fri, 18 Aug 2006 10:37:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06220-04-6 for ; Fri, 18 Aug 2006 10:37:31 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id 2B3601FEBB for ; Fri, 18 Aug 2006 10:37:31 +0200 (CEST) Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 1608 for ; Fri, 18 Aug 2006 10:37:30 +0200 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Original-To: mailing list for ConTeXt users In-Reply-To: <44E57A2F.8060405@elvenkind.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30387 Archived-At: Taco Hoekwater wrote: > wwl@musensturm.de wrote: > >>>> How can this be fixed? >>>> >>> puts("Hallo"); >>> >>> nikolai >>> >> >> You can't be serious! >> > > I thought that was an extremely funny answer :-) > > >> Escape-Sequences like \n,\r,\t,\123 or \xef are integral part of the >> C-language and I have this in many different places in a lot of >> C-source files. >> >> Is there no solution? Why does this happen? >> > > It happens because the \n is at the very end of the double > quoted string. It is a bug / oversight in the verb-c.tex, > but I have no time to fix it right now. I will try to have > a look at it in the weekend. > > can it be that the (here commented) \beginofpretty[\!!prettyeight]% \beginofpretty[\!!prettynine]% pickup is not needed? i guess that it has no matching stop and since colors are grouped ... \gdef\doCtypefiveA#1#2% {\endCtypesix \ifinCcomment \getpretties{#1}{#2}% \else\ifinCsingle \getprettydata{#2}% \ifnum\prettytype=50 \beginofpretty[\!!prettyfive]\getpretties{#1}{#2}\endofpretty%\beginofpretty[\!!prettyeight]% \else\ifnum\prettytype=80 \beginofpretty[\!!prettyfive]\getpretties{#1}{#2}\endofpretty%\beginofpretty[\!!prettyeight]% \else \getpretties{#1}{#2}% \fi\fi \else\ifinCdouble \beginofpretty[\!!prettyfive]\getpretties{#1}{#2}\endofpretty% \beginofpretty[\!!prettynine]% \else \beginofpretty[\!!prettyfive]\getpretties{#1}{#2}\endofpretty \fi\fi\fi} \gdef\doCtypefiveB#1% {\endCtypesix \ifinCcomment \ifcat#1\relax \continueCsinglelinecommenttrue \getpretty{#1}% \else \getpretty{#1}% \fi \else\ifinCsingle \getpretty{#1}% \else\ifinCdouble \beginofpretty[\!!prettyfive]\getpretty{#1}\endofpretty% \beginofpretty[\!!prettynine]% \else \beginofpretty[\!!prettyfive]\getpretty{#1}\endofpretty \fi\fi\fi} so: \gdef\doCtypefiveA#1#2% {\endCtypesix \ifinCcomment \getpretties{#1}{#2}% \else\ifinCsingle \getprettydata{#2}% \ifnum\prettytype=50 \beginofpretty[\!!prettyfive]\getpretties{#1}{#2}\endofpretty \else\ifnum\prettytype=80 \beginofpretty[\!!prettyfive]\getpretties{#1}{#2}\endofpretty \else \getpretties{#1}{#2}% \fi\fi \else\ifinCdouble \beginofpretty[\!!prettyfive]\getpretties{#1}{#2}\endofpretty \else \beginofpretty[\!!prettyfive]\getpretties{#1}{#2}\endofpretty \fi\fi\fi} \gdef\doCtypefiveB#1% {\endCtypesix \ifinCcomment \ifcat#1\relax \continueCsinglelinecommenttrue \getpretty{#1}% \else \getpretty{#1}% \fi \else\ifinCsingle \getpretty{#1}% \else\ifinCdouble \beginofpretty[\!!prettyfive]\getpretty{#1}\endofpretty \else \beginofpretty[\!!prettyfive]\getpretty{#1}\endofpretty \fi\fi\fi} seems to work ok here ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------