Lua equivalent to `:syntax match`, `:syntax keyword`?

Is there a way to translate syntax commands (see :h syn-match, :h syn-keyword) from vimscript to lua?

syntax match cCustomFunc /\w\+\s*(/me=e-1,he=e-1
syntax keyword cBoolean true false

vim.cmd.syntax([[match cCustomFunc /\w\+\s*(/me=e-1,he=e-1]])

Similar question here:

syntax match myColor "a" or "b"
highlight! link myColor CurSearch

Any suggestions?

Same answer: just wrap it in vim.cmd. There is no other way, and none is planned (it’s too niche to merit a custom API, and no benefit since it’s already a dedicated DSL).