-
Notifications
You must be signed in to change notification settings - Fork 153
Removed .h from C. C is a subset of the superset C++ and does not req… #156
Conversation
…uire .h within it. Atom looks at C first and formats and syntax highlights .h class files like C does and this creates problems. C highlighting will be the same, CPP class highlighting fixed.
Any updates here? |
/cc @thomasjo: Would this create any problems by highlighting all C header files as if they were C++, or is the existing problem (highlighting all C++ header files as if they were C) a bigger problem? |
C++ is a larger problem, the only issue arises if someone names a variable On Sun, Sep 4, 2016, 12:18 PM Wliu [email protected] wrote:
|
Just to set the record straight, C is not a subset of C++. That being said, flipping our current defaults, should not pose any major issues. Although it will incorrectly highlight valid C code that uses C++ keywords such as The current situation isn't really a major issue since it is trivially solved by customFileTypes:
"source.cpp": [
"h"
] I'm not opposed to the proposed change. /cc @atom/feedback |
I totally agree and perhaps should have ascertained that I was not If there is an alternative fix you suggest that I might be able to As it stands, the change should have very little negative for its positive. Thanks! On Sun, Sep 4, 2016, 10:37 PM Thomas Johansen [email protected]
|
Yeah, I second this. There should be no major issues caused by this change, but I'd prefer to get some extra input and 👀 from some other maintainers before merging. Just to remove any uncertainty, I'm 👍 on this. |
Thanks for the label, I agree on the extra eyes and input! |
This seems like it's for the best. Merging. |
Sounds great, thanks! |
Removed .h from C. C is a subset of the superset C++ and does not require .h within it. Atom looks at C first and formats and syntax highlights .h class files like C does and this creates problems. C highlighting will be the same, CPP class highlighting fixed.