Skip to content

C++ namespaces lexed as Name and not Name.Namespace #1719

@amitkummer

Description

@amitkummer

This happens when declaring a namespace:

namespace std {}

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::optional{}

std is matched as Name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions