<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Apr 19, 2007, at 2:55 PM, James Edward Gray II wrote:</DIV><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">On Apr 12, 2007, at 9:00 PM, Thomas Aylott wrote:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Moved a large number of innocent scopes from Ruby Experimental to Ruby.</FONT></P> </BLOCKQUOTE><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">Is it this change that has Ruby highlighting a lot more method calls?</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">I've noticed that I now see highlighting for things like assert, valid?, errors, invalid?, etc.<SPAN class="Apple-converted-space">  </SPAN>I don't remember these being caught by the syntax until recently.<SPAN class="Apple-converted-space">  </SPAN>These calls are caught by these new rules:<SPAN class="Apple-converted-space">  </SPAN>meta.function-call.method.with-arguments.ruby, meta.function-call.method.without-arguments.ruby, meta.function-call.ruby.</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">First, just a few questions.<SPAN class="Apple-converted-space">  </SPAN>Why are we doing this?<SPAN class="Apple-converted-space">  </SPAN>We want to scope all function calls to aid in command building?<SPAN class="Apple-converted-space">  </SPAN>We want to dramatically increase syntax highlighting?<SPAN class="Apple-converted-space">  </SPAN>Both?<SPAN class="Apple-converted-space">  </SPAN>Something else?<SPAN class="Apple-converted-space">  </SPAN>Just to be clear, I'm not complaining here, yet.<SPAN class="Apple-converted-space">  </SPAN>I'm just trying to understand the goals.</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">Second, this definitely changes the behavior of the Ruby grammar in places.<SPAN class="Apple-converted-space">  </SPAN>For a trivial example, create a Ruby document and enter:</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"><SPAN class="Apple-converted-space">  </SPAN>SomeClass.new</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">Now if you go into the Ruby grammar and disable the rule meta.function-call.method.without-arguments.ruby, the new() call will be scoped very differently.</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">I think we should discuss the goals of this patch and if we are achieving them in the best possible ways.<SPAN class="Apple-converted-space">  </SPAN>The Ruby grammar is quite complex and handles many edge cases.<SPAN class="Apple-converted-space">  </SPAN>Making large changes to it is pretty risky and should be well planned, I think.</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">James Edward Gray II</FONT></P> </BLOCKQUOTE></DIV><BR><DIV>This conversation was handled on IRC.</DIV><DIV>The consensus was that the new method scopes will be dropped from the main Ruby syntax.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The current plan is to make these changes, and others, available as an option in TM2 with scope injection.</DIV><DIV>Everyone is happy! YAY ME!</DIV><DIV><BR><DIV>thomas Aylott — <B>subtleGradient </B>— CrazyEgg — sixteenColors</DIV></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>