<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On May 25, 2007, at 3:13 AM, Michael Sheets wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Been working on standardizing the embedded scopes for a while now as well as adding a long needed whitespace scope. Need some feedback on both:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">punctuation.whitespace: For use when you need to extend a scope to the beginning or end of a line without extending the actual scope to it. For instance a series of indented comments, the space before # on each line shouldn't be a comment but that means you can't target a command at the whole set of them. By specifying a whitespace rule you can use both to do so without messing up the scoping. Also useful for when you have embedded blocks (say for instance <script> tags, we currently extend the source.js to the edge, which of course isn't correct but styles better). This wouldn't be for every situation, only those where it makes sense and be helpful.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Embedded scopes: I've drawn up a list of examples that outline each type of embedded scope I could think of. Will require some theme changes but should make everything work more consistently.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><<A href="http://temp.whitefalls.org/embedded/inclusive_single_tag.png">http://temp.whitefalls.org/embedded/inclusive_single_tag.png</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><<A href="http://temp.whitefalls.org/embedded/lines.png">http://temp.whitefalls.org/embedded/lines.png</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><<A href="http://temp.whitefalls.org/embedded/heredoc.png">http://temp.whitefalls.org/embedded/heredoc.png</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><<A href="http://temp.whitefalls.org/embedded/enclosed_in_tags.png">http://temp.whitefalls.org/embedded/enclosed_in_tags.png</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><<A href="http://temp.whitefalls.org/embedded/enclosed_in_tags_v2.png">http://temp.whitefalls.org/embedded/enclosed_in_tags_v2.png</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><<A href="http://temp.whitefalls.org/embedded/template_language.png">http://temp.whitefalls.org/embedded/template_language.png</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><<A href="http://temp.whitefalls.org/embedded/mixed_cases.png">http://temp.whitefalls.org/embedded/mixed_cases.png</A>></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Also added a new meta.tag.template.* sub-scope in some of the above examples. It's used in template languages where the tags themselves do something other than simply embed another language. For instance it's not for PHP or erb, but would be for Mason and Movable Type. (See above examples)</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Hopefully it's not all that confusing, was the best way I could think of to visualize it all.</FONT></P> </BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Looks great.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm already using whitespace scopes in a number of my languages for theaming up the different tab levels visually.</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><A href="http://flickr.com/photos/thomas_aylott/404629540/in/set-72157594577992345/">http://flickr.com/photos/thomas_aylott/404629540/in/set-72157594577992345/</A></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><A href="http://flickr.com/photos/thomas_aylott/211990629/in/set-72157594577992345/">http://flickr.com/photos/thomas_aylott/211990629/in/set-72157594577992345/</A></DIV><BR><DIV>One thing that I'd like to see done is scoping a single line ERB block and a multi-line ERB block as such, so you can style them differently.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Also scoping the different types of embedded tags differently <% %>, <%= %>, etc…</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN>I'm already doing that in my personal Rails HTML syntax.</DIV><DIV><BR><DIV>thomas Aylott — <B>subtleGradient </B>— CrazyEgg — sixteenColors</DIV></DIV></BODY></HTML>