<div class="markdown">
<p dir="auto">On 15 May 2014, at 15:59, Ken Snyder wrote:</p>

<blockquote>
<p dir="auto">I'm guessing this isn't possible but I'd love to have my 'doc' tab trigger<br>
for PHP distinguish between the namespace it is in. Is this possible?</p>
</blockquote>

<p dir="auto">There are two options:</p>

<ol>
<li value=1><p dir="auto">Put the namespace in the scope. We do this for C++, so for this code:</p>

<pre><code>namespace oak
{
    ‸
}
</code></pre>

<p dir="auto">The scope contains <code>meta.namespace-block.oak.c++</code>. Though we don’t actually use this extra information for anything.</p></li>
<li value=2><p dir="auto">Change the <code>doc⇥</code> trigger to run a command that takes ‘document’ as input and have the command itself extract the namespace and act accordingly. In Objective-C we do that for the <code>logm⇥</code> and <code>super⇥</code> snippets, the first one inserts a log statement that output all the parameters passed to the method, the latter inserts a call to the superclass.</p></li>
</ol>

</div>