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

fix: auto renaming for Templ files #177

Merged
merged 1 commit into from
May 21, 2024

Conversation

axzilla
Copy link
Contributor

@axzilla axzilla commented May 21, 2024

This PR fixes the issue with auto renaming tags in Templ files.

Changes:

  • Added patterns for start and end tags specific to Templ files.
  • Updated skip patterns to handle Templ-specific nodes.

This ensures that tags in Templ files are correctly renamed automatically.

@PriceHiller
Copy link
Collaborator

PriceHiller commented May 21, 2024

Thanks for the PR @axzilla, much appreciated.

Do you have a sample templ file I can use to make a test with? There's not a contributing requirement right now for tests, so I'm not going to push you to write them.

I just want an example templ file you'd expect nvim-ts-autotag features to work in so I can write some tests later to support this PR.

Once I have that sample, I'll merge 🙂

@PriceHiller PriceHiller merged commit 6f38e42 into windwp:main May 21, 2024
1 check passed
@PriceHiller
Copy link
Collaborator

Nevermind, got a sample now. Thanks again 😄

@axzilla
Copy link
Contributor Author

axzilla commented May 22, 2024

Nevermind, got a sample now. Thanks again 😄

Glad, that i could help. =)

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

Successfully merging this pull request may close these issues.

2 participants