The exact approach depends on how Twig and HTML syntaxes are combined. This is an old issue, and you will find several syntaxes in the default runtime that include HTML syntax, for example. htmldjango, markdown, php.
In addition, a quick twig vim syntax lookup calls this and this . Should solve your problem, right ?!
source share