Parser bug-fix

Fixed a bug that could lead to an incorrect determination of when the
sign refers to the number or expression.