Perl5 plugin for IntelliJ IDEA v1.2: Moose and Signatures



    The next version of the Perl5 plugin for IntelliJ IDEA and other IDEs from JetBrains has been released. The new version adds support for Method :: Signature :: Simple and Moose.

    What's new?


    Formatting


    • Wrapping for lists in code
    • Aligning arrows in anonymous hashes
    • Formatting and alignment for ternary operator
    • Folding for line lists in qw
    • Space settings for anonymous hashes and arrays
    • Space settings for range operators and concatenation

    Parser


    • return is now considered a keyword
    • native Perl5 signatures are supported (according to the current version of Perl5)

    Settings


    • Added option to control terminator auto-insert for here-doc
    • Added option to control lightweight resolution of main :: functions

    Code style


    • Added a panel for setting the style of Perl5 code and automatically reformatting the source according to the settings
    • Setting the use of optional quotes
    • Configuring the use of optional forwarding between array and hash indices
    • Configuring the use of optional brackets in expression modifiers (postfix if/for/etc...)
    • Array hash element forwarding setting: $var->{key}or$$var{key}
    • Setting up forwarding a simple array or hash: @$array_refor@{$array_ref}
    • Setting the style of accessing the namespace main: main::or::

    Method :: Signature :: Simple


    • Parsing, autocompletion, navigation and refactoring of designs methodandfunc

    Moose and Moo


    Implemented basic support for the Moose framework.

    • Correct processing use Moose/Moo
    • Correct expression processing extendsandwith
    • Parsing, autocompletion, navigation and refactoring of attributes has(some annotations work)
    • Parsing, autocompletion, navigation and refactoring of overrides override(some annotations work)
    • Parsing, navigation and refactoring modification methods: around, after, beforeandaugment
    • Keyword support innerandsuper

    Additionally, about 30 various technical and usability bugs were fixed.

    What's next?


    Mason is coming ...

    References



    Have a nice coding!

    Also popular now: