Error: unexpected end keyword
jasikpark opened this issue · comments
When formatting
<script></script>
{{ if }}
<script></script>
{{ end }}
I get this error: Error: Encountered unexpted end keyword.
in prettier-plugin-go-template@0.0.12-beta-1
When given
<span></span>
{{ if }}
<script></script>
{{ end }}
it formats without complaint. with thorough testing of this, I think there's something weird w/ this particular configuration of script tags
Should be fixed in prettier-plugin-go-template@0.0.12-beta.5
Thanks for this fix! I was running into this as well. Upgrading to 0.0.12 fixed it.
Always happy to help 🚀