From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!85.12.16.68.MISMATCH!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx10.am4.POSTED!not-for-mail Subject: Re: AWS template documentation help Newsgroups: comp.lang.ada References: <62da32c9-61b7-4ed1-afdf-9319eff5fe8a@googlegroups.com> From: Per Sandberg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <62da32c9-61b7-4ed1-afdf-9319eff5fe8a@googlegroups.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@usenet.se NNTP-Posting-Date: Fri, 21 Dec 2018 08:16:49 UTC Organization: usenet.se Date: Fri, 21 Dec 2018 09:16:49 +0100 X-Received-Bytes: 1556 X-Received-Body-CRC: 1211605510 X-Original-Bytes: 1505 Xref: reader01.eternal-september.org comp.lang.ada:55094 Date: 2018-12-21T09:16:49+01:00 List-Id: Why not just use the default ones "@_" and "_@" ?? /P On 12/20/18 11:35 PM, Michael Hardeman wrote: > Running this code: > > Templates.Set_Tag_Separators (Start_With => "'@", Stop_With => "/"); > Templates.Insert (Translations, Templates.Assoc ("foo", "'bar/baz")); > Put_Line (Templates.Translate ("test '@foo/one/two/three' test", Translations)); > > Yields the following error: > > raised TEMPLATES_PARSER.TEMPLATE_ERROR : Unknown attribute name "@foo" > > I expected it to print: > > test 'bar/baz/one/two/three' test > > If I remove the initial ' in Start_With it works ok, but if I keep the ' I get this strange error. I assume there might be some undocumented feature for the templates, but I can't find anything having to do with "attribute". Does anyone know what this is? >