mvdan / sh

A shell parser, formatter, and interpreter with bash support; includes shfmt
https://pkg.go.dev/mvdan.cc/sh/v3
BSD 3-Clause "New" or "Revised" License
7.21k stars 339 forks source link

syntax: fix a parser crash when trying to produce a friendly error #947

Closed mvdan closed 1 year ago

mvdan commented 1 year ago

(see commit message)

mvdan commented 1 year ago

Going to merge for now; always happy to get a review later :)