Allow function names enclosed in parenthesis

This commit is contained in:
Jonathan Müller 2017-06-21 15:34:15 +02:00
commit 7e71a64437

View file

@ -160,6 +160,10 @@ namespace
} }
DEBUG_ASSERT(!stream.done(), detail::parse_error_handler{}, stream.cursor(), DEBUG_ASSERT(!stream.done(), detail::parse_error_handler{}, stream.cursor(),
"unable to find end of function prefix"); "unable to find end of function prefix");
while (detail::skip_if(stream, ")"))
{ // function name can be enclosed in parentheses
}
if (!scope.empty() && scope.back() == ':') if (!scope.empty() && scope.back() == ':')
{ {
result.semantic_parent = result.semantic_parent =