tags 35925 patch quit 積丹尼 Dan Jacobson writes: > In perl-mode, > > format FH = > @<< @# @<< @### @<<<<< @# @<<<< @# > (split)[0..5, 7..8] > . > write FH; > > becomes > > format FH = >     @<< @# @<< @### @<<<<< @# @<<<< @# >     (split)[0..5, 7..8] >     . >     write FH; > > wrecking output indentation and even introducing a syntax error on the "." line. > > (See man perlform.) > > Seen with C-x h TAB, emacs-version "26.1". AFAICS, perl-mode doesn't recognize a format declaration when indenting. I attach a patch that adds a check, plus some tests.