mesour-intellij-plugins / latte-pro-issues

2 stars 0 forks source link

Print macro is context-specific #158

Open martinbohmcz opened 7 months ago

martinbohmcz commented 7 months ago

Is your feature request related to a problem? Please describe. When I am printing array using inside javascript, Latte Plugin (v1.2) underlines the print macro with "Print invalid type: array".

Minimal code to reproduce.

{var $var = [1,2,3]}
<script>
    const annotations = {$var};
</script>

Print macro is obviously context-specific. See: https://fiddle.nette.org/latte/#b7da4d3c6c

Describe the solution you'd like Would it be possible the plugin does not report printing array inside Githubissues.

  • Githubissues is a development platform for aggregating issues.