manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.43k stars 125 forks source link

ManTL Templates in the IntelliJ plugin fail to render nested Java statements/expressions correctly #338

Closed rsmckinney closed 2 years ago

rsmckinney commented 2 years ago

ManTL Templates in the IntelliJ plugin fail to render nested Java statements/expressions correctly.

For example, the IntelliJ editor shows errors for the nested todo.charAt() expressions.

    <% String todo = "hi"; %>
    <% if(true) { %>
      input <%= todo.charAt(0)%> <%= (todo.charAt(0) == 'r') ?  "checked" : ""%>/>
    <% } %>

Manifold compiles everything correctly, just the intellij plugin shows errors.

rsmckinney commented 2 years ago

Fixed with IJ plugin releases 2021.x.42 and 2020.3.51