yko / mojo.vim

Vim syntax for mojo epl templates in Mojo projects
http://www.vim.org/scripts/script.php?script_id=3168
Artistic License 2.0
52 stars 4 forks source link

inside perl block, html is highlighted as perl #8

Closed vitstradal closed 5 years ago

vitstradal commented 10 years ago

As mentioned in #7 by rshadow:

% if(1) {
       <tr class="<%= join ' ', @class %>" >
              <td>  
% }

Html code between {} is highlited as it was perl. To me it looks like in epl.vim

syn region PerlInside keepend start=+^\s*%=\{0,2}+hs=s end=+$+ contains=MojoSingleStart,@Perl

the keepend is ignored. Maybe error in vim?

yko commented 5 years ago

This should be fixed by the merge of PR #11. Please reopen if it's still a problem. Thanks!