parser: Fix scope()

! If there is no scope, there is no scope.

Signed-off-by: Max Reitz <xanclic@niwohlos.org>
syntax: Reorder template-declaration

* Put it before explicit-instantiation, because it's perhaps easier to
  detect as a mismatch.

Signed-off-by: Max Reitz <xanclic@niwohlos.org>
syntax: Fix GCC attributes

! That's right, fix 'em

Signed-off-by: Max Reitz <xanclic@niwohlos.org>
syntax: Add GCC attributes to namespaces

* Allow GCC attributes in namespace definitions

Signed-off-by: Max Reitz <xanclic@niwohlos.org>
parser: Keep track of maximum_extent

* Keep track of it even in manually written functions

Signed-off-by: Max Reitz <xanclic@niwohlos.org>
parser: Basic support for original-namespace-name

+ It's not really support for namespaces, but it's a start at least.

Signed-off-by: Max Reitz <xanclic@niwohlos.org>