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

Problems closing tags #33

Open
ultrait-sistemas opened this issue Jul 26, 2024 · 1 comment
Open

Problems closing tags #33

ultrait-sistemas opened this issue Jul 26, 2024 · 1 comment

Comments

@ultrait-sistemas
Copy link

ultrait-sistemas commented Jul 26, 2024

Good extension. But I have a problem where the tag is closed

I have this line

<a class="btn" href="#" data-to-user=""><b>{{ __('Contact') }}</b></a>

When I write the open tag characters {{ inside the data-to-user field, the extension delete part of the line.

<a class="btn" href="#" data-to-user="{{ }}</b></a>

Aparently the proble is that I had a previous tag close }} in the same line. Here {{ __('Contact') }}

@austenc
Copy link
Owner

austenc commented Aug 22, 2024

Thank you for reporting this. Did you perhaps have a selection made when doing this?

The way the extension works is based on the VS Code snippets feature. It uses a (hopefully) non-greedy regular expression to match and replace with a given snippet depending on the blade tag type (comment, double curlies, etc...).

Anyway, I'm not able to reproduce your error, so if you can provide some additional context or a reproduction, I'd be happy to look into it further. Here's what is happening when I try to reproduce with your example:

reproduction.mp4

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

2 participants