I use Codemirror to autocomplete some predefined words separated by dot charachters e.g. “user.payment” or “user.job.location”. The autocompletion feature works fine if I don’t use a dot a charachter, but it breaks when I type for example “user.”. How can I make it work?
I use show-hint.js and I modified the python-hint.js to define the predefined words.
You’re probably tokenizing the words to complete incorrectly. python-hint.js isn’t in the distribution anymore (since it was buggy and not doing anything that hintWords doesn’t already do). Maybe simply try defining hint words for your language: