<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 10, 2019 at 5:27 AM Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_-4161035957566512002__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:rgb(0,0,0)">
                                        Well ... there is at least some interference with Shout and/or that "highlight the opening bracket" feature in text editors. Sigh.<div><br></div><div>If we cannot figure this out, better revert this one.</div></div></div></blockquote><div><br></div><div>I would hack it.  I would use Shout to find out if the start selection is within code, within a string or within a comment.  i would then simply parse forward, counting brackets if in code, not counting if in a comment or string, and instead parsing comment or string delimiters as appropriate to get "back into code".</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_-4161035957566512002__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:rgb(0,0,0)"><div><br></div><div>Best,</div><div>Marcel</div><div></div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-top:20px;margin-left:0px;padding-left:10px">
                        <p style="color:rgb(170,170,170);margin-top:10px">Am 09.10.2019 17:55:15 schrieb <a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a> <<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>>:</p><div style="font-family:Arial,Helvetica,sans-serif">Marcel Taeumel uploaded a new version of Morphic to project The Trunk:<br><a href="http://source.squeak.org/trunk/Morphic-mt.1565.mcz" target="_blank">http://source.squeak.org/trunk/Morphic-mt.1565.mcz</a><br><br>==================== Summary ====================<br><br>Name: Morphic-mt.1565<br>Author: mt<br>Time: 9 October 2019, 5:54:57.18839 pm<br>UUID: 95a7cebb-cfbc-c94e-b934-d74c88ffa121<br>Ancestors: Morphic-mt.1564<br><br>Fixes text-composition bug for morphs embedded in text morphs through the text-anchor property.<br><br>=============== Diff against Morphic-mt.1564 ===============<br><br>Item was added:<br>+ ----- Method: TextMorph>>layoutChanged (in category 'layout') -----<br>+ layoutChanged<br>+   "For embedded morphs, we have to invalidate our paragraph if those morphs invalidate their layout. Since paragraph creation will also change this morph's bounds, ignore that case."<br>+ <br>+       (self hasProperty: #CreatingParagraph) ifFalse: [self releaseParagraph].<br>+     ^ super layoutChanged!<br><br><br></div></blockquote>
                                        </div></div><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>