Takes a subterm position, as returned by the subterm_positions option of
read_term/2 and increases its precision, avoiding some minor mistmatches
with the text, that for a refactoring tool is instrumental. This method
also ensures that the minimal required parenthesis enclosing a term are
contained in its scope, widening the positions 1 and 2 of the given term
position specifier. The current implementation is aware of comments and
extra parenthesis, asserting such information in term_innerpos/4 facts.
To be done
- This implementation have performance issues, needs optimization.