unlit: replace the SHEBANG with an empty line
authorPhil Ruffwind <rf@rufflewind.com>
Mon, 13 Mar 2017 19:17:47 +0000 (15:17 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 13 Mar 2017 19:17:47 +0000 (15:17 -0400)
commitc77b767098be53087e0b06ba23d613dd7c3bcf8e
tree164e70adf6123e7e8d17331483ad5eccd10478e5
parentae0ccf8c16f5ed394ab01a1863abd98a7a44ab60
unlit: replace the SHEBANG with an empty line

This corrects the line numbers for literate code after a shebang.
Fixes #13414.

Test Plan: validate

Reviewers: austin, bgamari, trofi

Reviewed By: bgamari, trofi

Subscribers: trofi, rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3333
testsuite/tests/parser/should_fail/T13414.lhs [new file with mode: 0644]
testsuite/tests/parser/should_fail/T13414.stderr [new file with mode: 0644]
testsuite/tests/parser/should_fail/all.T
utils/unlit/unlit.c