kate has no code completion, it has word completion. I does not recognize the syntax of the language you are writing it.