I would want to use it for inteliprompt.
I know I can use keypress event and go back to previous token from there, it just seems a bit less efficient. If the editor already has the list of tokens, it would be good to regsiter a token to trigger an event.
As an example, I want to bring a list of available types after uses types AS.
What I have to do now, is watch for space key press (following AS), keep reading all previous tokens that are whitespace (there could be more than one space) and see if next non-white space token is AS.
AS is only one of the tokens. I have several others that trigger different lists.
Having to keep going back through token list for each keypress just seems inefficient.