many fixes and updates to kate syntax