also word boundary handling in snippet edit
circumvent pyqt4/sip bug: keep ref to the highlighter in snippet/edit

if is constructed with a parent (the document() of the textedit)
but even though it is deleted by current pyqt4/sip4
pick the double backslash as a word, nicer in snippet/edit