I recently switched to PHPStorm and it's great, but I have a bunch of .js files that contain Smarty tags to insert a bit of scaffolding; but this breaks PHPStorm's syntax checker, highlighting all my code in red because it's not seeing the opening tags that the smarty tag will insert.
{include file="../../WidgetClassStart.js"}
return widgets_Base.extend( {
The error is "'return' outside function definition".
Can I get PHPStorm's syntax checker / compiler to either evaluate the Smarty tag's contents or ignore this specific pattern (since it's the same everywhere) for that specific error?