NiklasPor / prettier-plugin-go-template

Fixes prettier formatting for go templates 🐹

Home Page:prettier-plugin-go-template-niklaspor.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Always happy to help 🚀