sublime-cpp11
sublime-cpp11 copied to clipboard
Replacement self-contained C++11 syntax definition for Sublime Text
The command in the build system file is: `"cmd": ["g++", "-std=c++1y", "${file}", "-o", "${file_path}/${file_base_name}"]` The `std` parameter is c++1y. The man page for gcc version 4.8.4 says that `c++1y` is...
In example below, the 'final' attached to method() is highlighted, but the 'final' on class foo is not. class foo final { void method() final; };
``` void something(bool test) { if (test) { some.push_back(Bar( std::tr1::make_shared( Arg())); } for (auto v : SysVars) add(v); } void Foo::Foo() {} ``` Here `std::tr1::make_shared` highlighted as function name But...
If you (probably accidentally) make a multiline // comment by ending a comment line with a backslash (as discussed here https://stackoverflow.com/questions/7059549/c-multi-line-comments-using-backslash ) Only the original line with // in it...
- As of C++11, integral and floating-point literals can be followed by a user-defined literal - Class and Struct definitions can contain the final, private, protected, public keywords
This is highlighted: ``` cpp void foo() noexcept; ``` This is not: ``` cpp Foo() noexcept; ```
When inheriting from another class, the inheritance specification is not highlighted: ``` struct A : private B { private: void c(); }; ``` Expected result: Both `private` specifiers are highlighted....
1. can't identify the name of class, such as: class Hack{ }; ``` Hack& operator
Example: ``` void unicode_identifier_φ() { // ... } ```
When a line is interrupted like ``` c++ auto test = split(parser.getStringParam("test"), delim); ``` It produces different syntax than an uninterupted line ``` c++ auto test = split(parser.getStringParam("test"), delim); ```