Better detection of semi-colon completion