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

decltype in function scope breaks syntax highlighting for rest of line #18

Closed
matter123 opened this issue Mar 13, 2019 · 2 comments
Closed
Assignees
Labels
🐛 Bug Something isn't working

Comments

@matter123
Copy link
Collaborator

When decltype() is used in a function scope. The delctype keyword and anything after it has no syntax highlighting. The entire line has the textmate scope of meta.function-call. This issue is not present in the default grammar.

Better C++ Syntax Default
Screen Shot 2019-03-13 at 8 36 50 AM Screen Shot 2019-03-13 at 8 37 54 AM
@jeff-hykin jeff-hykin self-assigned this Mar 13, 2019
@jeff-hykin jeff-hykin added 🐛 Bug Something isn't working High Priority Common or breaks highlighting of more than just itself labels Mar 13, 2019
@jeff-hykin
Copy link
Owner

A temporary fix was included in v1.5.0, (pushed just now) it just treats decltype as a function.
I'm going to leave this open until it gets properly fixed, along with sizeof, and alignas.

@jeff-hykin jeff-hykin removed the High Priority Common or breaks highlighting of more than just itself label Mar 14, 2019
@jeff-hykin
Copy link
Owner

jeff-hykin commented Mar 16, 2019

Decltype was fixed today in version 1.6.0 along with sizeof, alignas, typeid, etc

Screen Shot 2019-03-16 at 1 50 55 AM

This also fixes atom/language-c#246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants