#1797 Updated perl subroutine prototype highlighting support


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.

1 Attachments


  • Neil Hodgson

    Neil Hodgson - 2015-12-28
    • status: open --> open-fixed
  • Neil Hodgson

    Neil Hodgson - 2016-01-18
    • status: open-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks