pub fn prefix(text: &str, caret: usize) -> Option<(usize, &str)>
The word being typed before caret, if it can be completed: not empty, starting with a letter, _ or ', and not in a string.
caret
_
'