Current Geany master already has this keyword included, see https://github.com/geany/geany/pull/4014.
You can add it yourself without updating Geany by `Tools -> Configuration Files -> Filetype Configuration -> Programming Languages -> filetypes.java` and add `yield` to the keyword list. Or copy the whole list from the PR above.