fix for case where line is either self talking or self being referenced
make leading # optional when colorizing

Also prevent colorizing in case where previous char was a ^D. This is a
naive fix to stop eg. the name "c" (from "##c") being colorized in ^Dc
color sequences