cperl-mode
cperl-mode copied to clipboard
Bring new language features and popular DSLs into cperl-mode
I have in most of my Perl files: \# (compile (concat "perltidy " (buffer-name)) nil) \# (ediff-files (concat (buffer-name) ".tdy") (buffer-name)) to make it easy to tidy up a file....
With the syntax `package NAME BLOCK` packages can be nested: ``` package Foo; package Bar { # This namespace 'Bar', correctly identified } # This is now namespace 'Foo' again....
I find other categories more important for a programmer, e.g. "takes more than one argument" versus "takes 0 or 1 arguments", because they are parsed differently when used without parentheses....
In a [recent commit](https://github.com/HaraldJoerg/cperl-mode/commit/17acd94ac999d0cb379e4d4b1a01a18fd9a85e1b) I've added partial support for the Perl OO framework/tookit [Zydeco](https://metacpan.org/pod/Zydeco). It is "partial" because it only supports stuff which was accessible with the refactoring I had...
Since Perl 5.14, one can write ``` package My::Package 0.01 { ...; } ``` Such packages don't appear in the index for imenu/speedbar/ecb. While I've got `package NAME BLOCK` (i.e....