irony-completion: improve trigger points code