i switched phpstorm , it's great, have bunch of .js files contain smarty tags insert bit of scaffolding; breaks phpstorm's syntax checker, highlighting code in red because it's not seeing opening tags smarty tag insert.
{include file="../../widgetclassstart.js"} return widgets_base.extend( { the error "'return' outside function definition".
can phpstorm's syntax checker / compiler either evaluate smarty tag's contents or ignore specific pattern (since it's same everywhere) specific error?
i ended putting
var widget; in widgetclassstart.js;
in every widget replaced "return ..." with
widget = ... and return that var in widgetclassend.js file,
return widget; so widgetclassend.js place error occurs , widgets @ least free red squiggly lines.
Comments
Post a Comment