PHP: parse namespaces
commit8086129c9c26c49700798bdb27da85b75cc1ca49
authorColomban Wendling <ban@herbesfolles.org>
Wed, 10 Apr 2013 17:27:21 +0000 (10 19:27 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Mon, 15 Apr 2013 16:55:52 +0000 (15 18:55 +0200)
tree2c8dbc6505da97536c90e29d2501b07f67b99abf
parentc2e4111aaf9a7bc2833568fa7248833f201c7c8b
PHP: parse namespaces

PHP namespaces don't work anything like a block, so the implementation
is specific and not combined with scope management.  Namespaces cannot
be nested, and they may apply either to the rest of the file (until the
next namespace declaration, if any) or to a specific block.

Namespaces applying to the rest of the file:

namespace Foo;
/* code in namespace Foo */
namespace Bar\Baz;
/* code in namespace Bar\Baz */

Namespaces applying to blocks:

namespace Foo {
/* code in namespace Foo */
}
namespace Bar\Baz {
/* code in namespace Bar\Baz */
}
namespace {
/* code in root namespace */
}
tagmanager/ctags/php.c