<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks, Dan,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I&#39;ll do my part to update the wiki with the preferred syntax and add support into PyDelphin. Regarding the syntax description, it would be rather complicated to enforce one docstring per type in the production rules if it&#39;s not in a fixed position, so I&#39;ll let it accept multiple per type and just make a note for implementers that only the first one must be preserved (with the action for additional docstrings left undefined).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">And, Woodley, good catch on the regex bug. Those patterns should be negative lookahead assertions. I think the following works:<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">    DocString := /&quot;&quot;&quot;([^&quot;\\]|\\.|&quot;(?!&quot;)|&quot;&quot;(?!&quot;))*&quot;&quot;&quot;/</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Lookahead assertions can slow down regex searches, so this pattern is intended to be illustrative; a non-regex parser is fine as long as it also allows escaped characters (including quotes) and up to two unescaped quotes not followed by a third quote. Also, if it&#39;s not clear from the pattern, newlines are acceptable within the triple-quoted strings.<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 7, 2018 at 12:28 AM Woodley Packard &lt;<a href="mailto:sweaglesw@sweaglesw.org">sweaglesw@sweaglesw.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello docstringers,<div><br></div><div><div style="margin:0px;line-height:normal">I have added to ACE the ability to detect and ignore triple-quoted strings anywhere within a TDL statement.  I will leave it to others to determine and police legal placement.  The (very lightly tested) update is available in the ACE SVN trunk for those who wish to test it.  I will be happy to make a binary release soon if bugs are not uncovered.</div></div><div><br></div><div>I have one nit to pick with the proposed regular expression for doc strings.  The following docstring would be treated as terminating early, since the backslash is gobbled up without being interpreted:<div><br></div><div><div style="margin:0px;line-height:normal">&quot;&quot;&quot;hello&quot;\&quot;&quot;&quot;not done yet&quot;&quot;&quot;</div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal">This one is legal in python (and handled properly by ACE :-)).</div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal">Best,</div><div style="margin:0px;line-height:normal">-Woodley</div><div style="margin:0px;line-height:normal"><br></div><div><blockquote type="cite"><div>On Aug 3, 2018, at 8:57 PM, Francis Bond &lt;<a href="mailto:bond@ieee.org" target="_blank">bond@ieee.org</a>&gt; wrote:</div><br class="m_5455672210496114267Apple-interchange-newline"><div><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">DocString    := /&quot;&quot;&quot;([^&quot;</span><a style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">\\]</a><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">|\\.|&quot;[^&quot;]|&quot;&quot;[^&quot;])*&quot;&quot;&quot;/ Spacing</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"></div></blockquote></div><br></div></div></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">-Michael Wayne Goodman</div>