How can I create a syntax definition (highlighting) that builds on another?


#1

Found this question over at Reddit:



#2

Would the right way to do this be to create a new like filetype via BufCreate and then have it source the original.


#3

it would return the errors because of duplicate highlighters.

I anwsered on reddit, not 100% sure if my solution is correct but seems to be working.