Basic information for making your own syntax file:
The official vim documentation:
The SyntaxRange vim plugin looks really cool!
(more background by other authors: [1] [2] )
Some other ways to accomplish the same thing: