helper to return the matching start or end region.
useful for searching them, at the moment one can not construct them outside of the framework
needed e.g. for the tests in ktexteditor!592 (merged)
useful for searching them, at the moment one can not construct them outside of the framework
needed e.g. for the tests in ktexteditor!592 (merged)