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
Comment actions Permalink
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.

Comment actions Permalink

Works fine in Django btw

0
Comment actions Permalink

Works like a charm, thanks!

0

Please sign in to leave a comment.