Specifying a type when assigning a lambda (or lambda result when called in place) causes visual assist to incorrectly highlight the assignment variable.
In the following example lambda will be white not the VA Variable colour.
std::function<int()> lambda = []()
{
return 10;
};
In the following example result will be white not the VA Variable colour.
int result = []()
{
return 10;
}();
Note that swapping int or std::function<int()> for auto results in the correct colour.