What we _could_ perhaps do (because detecting a URI in a text flow is undefined territory, with already quite a few quirks in place, such as stripping off the trailing dot) is to strip off the trailing ":linenumber". That is, the trailing ":" if it's followed by numbers only.
That way you could easily and quickly open the desired file "filename.cpp". Not at the desired position, though.
What we _could_ perhaps do (because detecting a URI in a text flow is undefined territory, with already quite a few quirks in place, such as stripping off the trailing dot) is to strip off the trailing ":linenumber". That is, the trailing ":" if it's followed by numbers only.
That way you could easily and quickly open the desired file "filename.cpp". Not at the desired position, though.