~/.vim/after/syntax/directory (create the directory if it doesn't exist).
The YUI3 syntax is generated automatically by the
raw2syntax.rb script from a YUIDoc
raw.json data file. To modify the syntax, edit the
syntax.erb template; don't edit the generated syntax file itself.
I know little about vim syntaxes, so this thing can probably be improved. Patches and feedback are very welcome.