JS errors in templating language

I've implemented TemplateLanguage: HTML + Perl. But, have a little problem: if JS syntax is incorrect because of perl parts, it shows an error

Disabling inspections doesn't help.

Is there any way to avoid this?

3 comments
Official comment

Most likely it's because Django has an instance of TemplateLanguageErrorFilter which suppresses the errors. Or it can add something invisible to keep parser happy; investigating its PSI tree can help.

Please sign in to leave a comment.