Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Add noexcept to the list of storage modifiers - #131

Merged
winstliu merged 1 commit into
atom:masterfrom
jamesqo:patch-1
Apr 2, 2016
Merged

winstliu merged 1 commit into
atom:masterfrom
jamesqo:patch-1

Conversation

@jamesqo

@jamesqo jamesqo commented Apr 2, 2016

Copy link
Copy Markdown
Contributor

noexcept is a keyword in C++11, but is not listed in the grammar. As a result, this doesn't syntax-highlight properly:

class foo
{
public:
    void bar() const noexcept;
};

cc @50Wliu

@winstliu
winstliu merged commit 05278c7 into atom:master Apr 2, 2016
@winstliu

winstliu commented Apr 2, 2016

Copy link
Copy Markdown
Contributor

Thanks!

@jamesqo
jamesqo deleted the patch-1 branch April 2, 2016 01:55
@winstliu

winstliu commented Apr 2, 2016

Copy link
Copy Markdown
Contributor

This actually should have been in c++.cson since it's not a keyword in C...didn't catch that before merging 😞. Fixing now and will publish another release.

@jamesqo

jamesqo commented Apr 2, 2016

Copy link
Copy Markdown
Contributor Author

@50Wliu If that's the case, then shouldn't keywords like override be moved to the C++ grammar as well?

@winstliu

winstliu commented Apr 2, 2016

Copy link
Copy Markdown
Contributor

Yes, probably. Would you mind creating a new PR (including noexcept) to move those over to c++.cson?

@jamesqo

jamesqo commented Apr 2, 2016

Copy link
Copy Markdown
Contributor Author

@50Wliu Sure. I'm also planning to add a couple of other C++11 keywords (such as thread_local), so I'll include that as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants