jrockway / cperl-mode

cperl-mode with 5.10 fixes, mx-declare support, perl6 support, etc.
102 stars 33 forks source link

How to make cperl-indent-region not change any indentation within here-docs? #22

Closed kaushalmodi closed 7 years ago

kaushalmodi commented 10 years ago

Hi,

How do I configure cperl (or is it possible?) so that cperl-indent-region does not mess up the indentations within here-docs.

If I have something like,

print FILEHANDLE <<EOF;
$i : begin
   \$display("");
   `INFO1("abcd");
   config_this (
      .abc(abcd));
EOF

, after cperl indentation it becomes this,

print FILEHANDLE <<EOF;
$i : begin
\$display("");
`INFO1("abcd");
config_this (
.abc(abcd));
EOF

How do I prevent that? I am using cperl version 20140309.122 from Melpa.

Thanks.

TLINDEN commented 7 years ago

Same problem with sample code inside a POD section.

TLINDEN commented 7 years ago

I switched to the stock cperl-mode which comes with emacs. It's now working like a charm. cperl-indent-region doesnt touch POD sections anymore.

kaushalmodi commented 7 years ago

@TLINDEN Thanks. I had lost track of this issue. I haven't seen this issue happening on the cperl-mode that ships with emacs.

renormalist commented 6 years ago

I merged the corresponding PR here. Tell me when I freaked up things.