Sublime Forum

Highlight "std::" and similar in C++

#1

Hey,

I would like to make namespaces in C++ less visible. For example in expressions like

foo::bar(parameter1, parameter2); // some function
foo::baz bar; // some object
std::copy(std::istream_iterator<int>(in), std::istream_iterator<int>(), std::back_inserter(array))

I tried for some hours to make some regular expressions but failed at it quite miserably. I tried to change C++.tmLanguage so it captures these namespaces. I tried to start with functions but could only resolve destructors. I do not clearly see through this system. Maybe there is already some solution?

0 Likes