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

confused by multiline comments containing syntax

josharian opened this issue · comments

  {{/* {{ range $attr := .Attrs }}    
  {{ end }}   */}}

This causes a spurious error:

Error: Encountered unexpected end keyword.

This also happens for comments in other contexts. I also ran across this breakage:

{{ if .B }}
  {{/* if */}}
{{ end }}

yields:

Error: Missing end block.