Fix identifier parsing in hp2ps
authorYuras Shumovich <shumovichy@gmail.com>
Sat, 29 Aug 2015 10:25:14 +0000 (12:25 +0200)
committerBen Gamari <ben@smart-cactus.org>
Sat, 29 Aug 2015 11:08:18 +0000 (13:08 +0200)
commit0c823af84d80ac103528e54eda8e1c6bdf2bea69
tree24776ce9a191570684a709b77a791855d329ea8b
parent8476ce24c77f4323bd4e03552d3d1513318589f4
Fix identifier parsing in hp2ps

Now identifiers can start with a package key, which is a hash, so they
may also start with a digit. Identifiers always appear at the beginning
of a line, and numbers never appear here, soit's safe to allow
identifiers to start with a digit.

Test Plan: `concprog002` passes under `threaded2_hT` way

Reviewers: austin, bgamari, thomie

Reviewed By: austin, bgamari, thomie

Differential Revision: https://phabricator.haskell.org/D1175

GHC Trac Issues: #10661
testsuite/tests/concurrent/prog002/all.T
utils/hp2ps/HpFile.c