sublime-cpp11
sublime-cpp11 copied to clipboard
Invalid highlighting
void something(bool test)
{
if (test)
{
some.push_back(Bar(
std::tr1::make_shared<Quux>(
Arg()));
}
for (auto v : SysVars)
add(v);
}
void Foo::Foo() {}
Here std::tr1::make_shared<Quux>
highlighted as function name
But Foo::Foo
is not highlighted at all
If I remove if
statement of for
statement, then Foo::Foo
will be highlighted properly.
Workaround: move std::tr1::make_shared
on same line as push_back