<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On May 10, 2007, at 10:17 AM, Charilaos Skiadas wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On May 10, 2007, at 10:08 AM, Ale Muñoz wrote:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On 10/05/2007, at 15:59, Charilaos Skiadas wrote:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">isn't actionscript an extension of javascript?</DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Not really.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ActionScript 1.0 was based in JavaScript and ECMAScript 3. AS 2.0 was based on ECMAScript 4. None of them comply with the full spec.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">AS 3.0 is (as far as I know) fully compliant with ECMAScript 4.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">But none of them *are* JavaScript.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I totally agree that some commands (mostly snippets and code writing stuff) could be shared, but I don't see the point of making AS use a source.js scope, really...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Anyways, it's just MHO...</DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Perhaps we need a source.ecmascript scope then, that the others would inherit from....</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">As an example of what I am thinking: Could a snippet for creating a basic function definition be the same for javascript and actionscript? If so, there is no reason to duplicate such a command.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Making the scope source.js does not mean that we must inherit the entire javascript syntax coloring. In fact we don't need to inherit any of it. The question is whether commands and snippets could perhaps be shared between the two languages.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Or perhaps also some minimal part of a language grammar could be formed, called ECMAScript or something, and then be inherited by both javascript and actionscript.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">But since I don't know any of the particulars of actionscript, I will keep out of it from now on ;). Just wanted to make it clear that using source.js as the first part of the scope name does not necessarily commit you as much as one would at first think of.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Ale Muñoz</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://sofanaranja.com">http://sofanaranja.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://bomberstudios.com">http://bomberstudios.com</A></DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Haris Skiadas</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Department of Mathematics and Computer Science</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hanover College</DIV></BLOCKQUOTE></DIV><BR><DIV>I was planning on doing something like that for the syntaxes themselves, but the actionscript3 crew are just way too fast for me.</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>I do have my own actionscript3 bundle that I use that is based on an earlier version of one of them. I have since upgraded it quite a bit, but none of it is really mergable.</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><A href="http://textmate.svn.subtlegradient.com/Bundles/Actionscript%203%20%5BsG%5D.tmbundle/">http://textmate.svn.subtlegradient.com/Bundles/Actionscript%203%20%5BsG%5D.tmbundle/</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Yes, I do believe that we should have an overriding ecmascript scope.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>source.ecmascript.javascript</DIV><DIV>source.ecmascript.javascript.jscript</DIV><DIV>source.ecmascript.javascript.prototype</DIV><DIV>source.ecmascript.actionscript.2</DIV><DIV>source.ecmascript.actionscript.3</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>There's a lot of stuff that would be sharable across all this stuff.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Should we include the ecmascript version too?</DIV><DIV>Some stuff applies to ecmascript 4 that doesn't apply to whatever ecmascript version javascript is based on.</DIV><DIV>But it isn't something that we'd want to limit to actionscript.3</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Moving to this sort of arrangement should only require a global search and replace.</DIV><DIV>Replace </DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>source.js => source.ecmascript.javascript</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>source.actionscript => source.actionscript.2</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>source.actionscript3 => source.actionscript.3</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Since source.actionscript is almost always meant to be source.actionscript.2, we'd default it to that to keep the same behavior.</DIV><DIV>Then we can go through and manually fix things that need fixing.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have a few offsite bundles that I'd need to keep in sync with this change, please keep me in the loop.</DIV><DIV>Thanks</DIV><DIV><BR><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>thomas Aylott — <B>subtleGradient </B>— CrazyEgg — sixteenColors</DIV></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>