[MERGE] fixups for attributes-before-signatures
authorDavid Mitchell <davem@iabyn.com>
Fri, 2 Mar 2018 13:37:45 +0000 (13:37 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 2 Mar 2018 13:44:49 +0000 (13:44 +0000)
commitbe68a30e444b3213a95df511fb8e856b2107ce73
tree870dda66a262326c7e359e6c8fd7d45383b39867
parentae09f008e4b03a4215db8e3151cfb0ee5f20f004
parenta8c5635617479436b1775ba4ab34e4bc791eda54
[MERGE] fixups for attributes-before-signatures

RT #132760

v5.27.7-212-g894f226 recently moved subroutine attributes from after
the signature to before the signature.

This small branch performs some minor tweaks to that; principally:

* splits the parser rules for subs into separate rules for subs
within and without the scope of 'use feature "signatures";

* makes the parser and toker recognise the possibility of attributes
following the signature, so that a targeted error message can be given,
rather than a general 'syntax error' and follow-on dross.