[SVN] question about PHP symbols

Allan Odgaard allan at macromates.com
Mon May 2 22:00:43 UTC 2005


On May 2, 2005, at 23:55, Kumar McMillan wrote:

> Was I right to decipher that using captures in that pattern results in
> a scope of:
> declaration.function.php function-name ?
> or is it :
> declaration.function.php.function-name ?
> or are those two the same thing ?

It's the former, and they are not the same.

I see the release notes actually don't mention captures, so just for 
the records, if these are nested like this:
     name = "test";
     match = "(foo(bar))";
     captures = (
        1 = { name = "foobar"; };
        2 = { name = "bar"; };
     );

Then the bar part (of a “foobar” match) will have this scope:
     test foobar bar




More information about the textmate-dev mailing list