textmate/php.tmbundle — pull request #40 by aurora (2013-11-29 23:30:42+00:00)
Title: prevent tab-triggers for snippets when in phpdoc scope

Currently tab-triggers for snippets are active in phpdoc, too, with the affect that snippets are inserted in documentation blocks, where you normally don't want to have them, for example:

class test {
/**
* ...
* @param array[tab-trigger]
*/
function test($arg) {
}
}

expands to:

class test {
/**
* ...
* @param $arrayName = array('' => , );
*/
function test($arg) {
}
}

My commit changes scope to "source.php - comment.block.documentation.phpdoc.php".

I was not sure, if i should really add it to all snippets or just for things like "array". I decided to apply the change to almost all relevant snippets, to stay consistent.