[SVN] Re: question about Go To Symbol
Allan Odgaard
allan at macromates.com
Thu Apr 21 17:43:42 UTC 2005
On Apr 21, 2005, at 18:44, Kumar McMillan wrote:
> Hey , excellent work on beta 6. I am especially excited about the
> Symbol Popup, which I didn't know you were even working on. However,
> I couldn't get it to work. This is what I tried in PHP.plist while
> Language was PHP, working in a file that had functions :
>
> {
> name = "symbols.php";
> showInSymbolList = 1;
> /*match =
> "(^\s*)((final|abstract)?\s?(public|private|protected)?\s?(static)?
> \s*)((function|class|interface)\s+)([^$]+[&a-zA-Z0-9_]+)(.*$)";*/
> match = "function.*";
> },
This key should be set in the settings (theme editor). So e.g. create a
new item with scope: “source.php symbols” and the value: “{
showInSymbolList = 1; }”.
Of course it'd be best if all languages used same names for function
names, so they'd be reached with a scope of: “declaration.function
name” or similar (so we do not need a new setting per language).
> (the simplified function pattern was just for testing). Maybe the
> PHP.plist isn't doing anything at all? The old color scheme does not
> show up but I thought maybe this was due to it not being updated as a
> theme.
There is now very little read from the actual language files, these are
now only for markup. Colors should be set in the theme editor.
More information about the textmate-dev
mailing list