i've taken a look and to be honest i'm terrible with regexp's and could use some help. i'm trying to define a way to see objects in a certain format in my JS files:

var CustomObject = Class.create();
CustomObject.prototype = Object.extend( (new ViewObject()), {
    member1 : true,
    member2 : "someString",
    member3 : "anotherString",

    someFunction : function(){
        //doSomething
    },

   someOtherFunction : function(){

   }
};

so then in the tmCodeBrowser i'd see something like:
   Objects
      - CustomObject
         - member1
         - member2
         - member3
         - someFunction
         - someOtherFunction etc....

something along those lines anyway. can one of you point me in a starting direction for howto setup the .ctags.tmcodebrowser file to do this for javascript files?

much thanx if you can!


On 11/29/05, Allan Odgaard <throw-away-1@macromates.com> wrote:
On 29/11/2005, at 16:03, Jamal Johnson wrote:

> sorry for the confusion. i'm actually wondering how the 'symbols'
> are created / determined?

The language grammar assign names to the various elements in the
language (see these by pressing ctrl-shift P with the caret on a
language element).

Then a bundle preferences item (see Bundle Editor and hunt for the
"Symbol List: …" items) will set the showInSymbolList to 1 and use a
scope selector (which is like a CSS selector) to target which
elements should have get setting (and thus be included).

So only stuff matched by the language grammar can be included in the
pop-up. It is of course possible to change the language grammar to
match more, but it sounds like you should first check the
TmCodeBrowser plug-in suggested by Haris, which use ctags to collect
the symbols.