简体   繁体   中英

emacs perl-mode: indent in hash broken for format key?

emacs24 has a weird bug for me ( using perl-mode ), when I enter a hash containing the key 'format', indent breaks for all subsequent lines.

Example:

my $hash = {
   foo => 'bar',
   format => 'some',
};

sub some_code {
print "will not indent :(";
};

Now hitting "tab" does nothing, neither does auto-indent ( indent-region ).

Any ideas why this might be and how I can fix it?

In my tests, Emacs-23 and Emacs-24 both handle this just fine, so I think the problem is linked to a customization in your ~/.emacs .

Try it with emacs -Q .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM