开发者

How do I adjust cperl mode indentation of qw//?

开发者 https://www.devze.com 2023-01-05 15:47 出处:网络
Following on from this question, here\'s another bugbear. I开发者_高级运维 am getting my @browsers = qw/

Following on from this question, here's another bugbear.

I开发者_高级运维 am getting

my @browsers = qw/
                     Firefox
                     MSIE
/;

but I want

my @browsers = qw/
    Firefox
    MSIE
/;

What setting in cperl mode in Emacs might I use to achieve that?


There isn't one. x// is handled as a special case, and the information about the indent of the line that starts the statement is not available:

http://github.com/jrockway/cperl-mode/blob/mx-declare/cperl-mode.el#L3074

This can be fixed with a bit of munging in cperl-sniff-for-indent and cperl-calculate-indent. Patch welcome!

0

精彩评论

暂无评论...
验证码 换一张
取 消