This happens when declaring a namespace:
std is lexed as Name and not Name.Namespace.
Also I don't see this being done in other lexers, maybe I didn't look enough so correct me if I'm wrong and this behavior is fine, but when prefixing names with their namespaces the namespaces are matched as just a Name :
std is matched as Name.