Changed implementation of functions with namespaces.
Highlight nested namespaces used in functions.