From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76171 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: [mkvi] comment handling bug Date: Mon, 14 May 2012 15:22:38 +0200 Message-ID: <20120514132238.GB13838@phlegethon> References: <20120513111202.GA13838@phlegethon> <4FB0B5C0.7040003@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0614618485==" X-Trace: dough.gmane.org 1337001692 3450 80.91.229.3 (14 May 2012 13:21:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 May 2012 13:21:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 14 15:21:31 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1STvDJ-0001v6-OJ for gctc-ntg-context-518@m.gmane.org; Mon, 14 May 2012 15:21:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C10EA101CF; Mon, 14 May 2012 15:21:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0QDUMfMNRyku; Mon, 14 May 2012 15:21:20 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D4AF101DF; Mon, 14 May 2012 15:21:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0CC3101DF for ; Mon, 14 May 2012 15:21:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CPHD2soD5UzZ for ; Mon, 14 May 2012 15:21:16 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 0F71F101CF for ; Mon, 14 May 2012 15:21:15 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4EDKOei026099 for ; Mon, 14 May 2012 15:20:28 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id q4EDLAb7001133 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 May 2012 15:21:10 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id q4EDL90N003060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 May 2012 15:21:09 +0200 Original-Received: from localhost (dslb-188-110-110-020.pools.arcor-ip.net [188.110.110.20]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id q4EDL8rf025321 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 14 May 2012 15:21:09 +0200 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <4FB0B5C0.7040003@wxs.nl> X-Operating-System: Linux phlegethon 3.3.2-1-ARCH X-Polite-Request: "Please try to be nice, don't send html mail." User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.100.212; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WH9Nkoq0 - abd67bb7c9b4 - 20120514 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:76171 Archived-At: --===============0614618485== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2012-05-14 09:35, Hans Hagen wrote: > On 13-5-2012 13:12, Philipp Gesang wrote: > >Hi all, > > > >seems the mkvi-style macros have trouble with groups in comments: > > > >=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > >% macros=3Dmkvi > >\def\dosomething#content{%%%<=3D fine with =E2=80=9C#1=E2=80=9D > > % { %%% Open unbalanced brace breaks macros. > >} > > > >\starttext \dosomething {foo} \stoptext > >=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > > > >Fails here with: > > > > > > c > > l.2 \def\dosomething#c > > ontent{%%%<=3D fine with =E2=80=9C#1=E2=80=9D > > > >Removing the comment, closing the group or reverting to TEX-style > >argument numbering makes this behavior disappear. >=20 > Indeed there are some limitations to the parser. I'll note it down > as low priority issue. Would it be possible to modify the comment pattern so that it accept initial spaces? At least it fixes my problem. Philipp --- /home/laokoon/base/luat-mac.lua 2012-05-14 14:52:40.674091445 +0200 +++ luat-mac.lua 2012-05-14 15:18:35.968999022 +0200 @@ -110,8 +110,10 @@ =20 local commenttoken =3D P("%") local crorlf =3D S("\n\r") -local commentline =3D commenttoken * ((Carg(1) * C((1-crorlf)^0))/funct= ion(strip,s) return strip and "" or s end) -local commentline =3D commenttoken * ((1-crorlf)^0) +--local commentline =3D commenttoken * ((Carg(1) * C((1-crorlf)^0))/fun= ction(strip,s) return strip and "" or s end) +--local commentline =3D commenttoken * ((1-crorlf)^0) +local commentstart =3D space^0 * commenttoken +local commentline =3D commentstart * ((1-crorlf)^0) local leadingcomment =3D (commentline * crorlf^1)^1 local furthercomment =3D (crorlf^1 * commentline)^1 --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAk+xBx4ACgkQ02lYlJYWs9JKnACgg5Lc55WAUEIOnI93iVzCMIDE 7BwAn3T++kbMtpfVSCZryDHKkRJVebbi =p+fq -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/-- --===============0614618485== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0614618485==--