This update adds support for subroutine prototype highlighting for syntax that was introduced in Perl 5.20. This include proper highlighting for:
(a) the new ':prototype' subroutine attribute for subroutine prototypes
(b) extra attributes in the form of colon-prefixed words
(c) the '::' module syntax in subroutine names
(d) spaces or tabs in subroutine prototypes (within the parentheses)
Attached is LexPerl.cxx and test samples.
Perl syntax highlighting is now mostly up to date (Perl 5.22), I don't think I have any other patches in the pipeline. There are of course, many dusty corner cases left, and that will be something for another day.
Log in to post a comment.