Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
amitkummer opened this issue Feb 18, 2021 · 0 comments · Fixed by #1722
Closed

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

amitkummer opened this issue Feb 18, 2021 · 0 comments · Fixed by #1722
Milestone

Comments

@amitkummer
Copy link
Contributor

amitkummer commented Feb 18, 2021

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.

@Anteru Anteru added this to the 2.9 milestone Feb 27, 2021
@Anteru Anteru added changelog-update Items which need to get mentioned in the changelog and removed changelog-update Items which need to get mentioned in the changelog labels Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants