less greedy matching
premature optimization
ignoring duplicate completions
refactoring
possible infinite loop removed
current line is searched too when looking for a completion
fixed the normal completion (non-skeleton)