pub fn identifier_at(input: &str, cursor: usize) -> Range<usize>Expand description
The character range of the whole identifier the cursor sits in or at the
end of, spanning both directions. This is the span an accepted suggestion
replaces, so completing in the middle of a word rewrites all of it rather
than leaving its tail behind. Empty when the caret is not in an identifier.