Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matchit: multiline tags and else statement #29

Open
buzuck opened this issue Sep 8, 2020 · 0 comments
Open

Matchit: multiline tags and else statement #29

buzuck opened this issue Sep 8, 2020 · 0 comments

Comments

@buzuck
Copy link

buzuck commented Sep 8, 2020

Hi 🙂

When a tag is stretches on multiple lines for readability, it is no longer detected by the plugin matchit/match-up

{% for very_long in dict
   if true and not false %}
[...]
{% endfor %}

I tried to change the variable b:match_words by adding a \_ with no luck though:
'{%[-+]\? *\%(end\)\@!\(\w\+\)\>\_.\{-}%}:{%-\? *end\1\>.\{-}%}'

There is also some improvement that could be done on this plugin. The else statement is not paired with if/endif.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant