no intellisense in comments or strings
Only make '.' electric if there is a valid residue

This prevents completions in situations such as [ 1 .
Merge pull request #781 from rneatherway/issue765

Issue765