martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.21k stars 258 forks source link

Heredocs with "-" can have spaces before closing #898

Closed silasdb closed 3 years ago

silasdb commented 3 years ago

If a here-doc start delimiter begins with "-", then spaces are allowed to come before the closing delimiter.

This patch fixes what would otherwise be parsed incorrectly:

<<-EOF
....
    EOF