Mapping extensions and creating custom filetypes are both covered in the Geany manual.
It would be better to create a custom filetype so that the reserved words can be changed to match meson, but personally I don't bother, meson "just works" and I don't spend much time staring at its files.