I need to write some regex to improve C++.tmLanguage file. For example I want to highlight assertions from Google Test framework. Example:
ASSERT_EQ(expected, actual);
so I wrote this:
ASSERT_[A-Z_]+
but when I'm adding open parenthesis highlight is broken. Also I would like to highlight function name after range operator, example:
Foo::function()
but same issue here.
Please help.
Edit:
Maybe other regex from .tmLanguage interfere in some way? I've tried several solutions, all of them worked in web regex testers, but still no effect in Sublime.