now we are able to correctly detect if a opening <% template %> is nested in an other one
and if we have a closing <% end template %> without first an opening one