]> git.eshelyaron.com Git - emacs.git/commit
Improve HERE document detection in perl-mode
authorMauro Aranda <maurooaranda@gmail.com>
Thu, 20 Oct 2022 10:34:38 +0000 (07:34 -0300)
committerMauro Aranda <maurooaranda@gmail.com>
Thu, 20 Oct 2022 10:34:38 +0000 (07:34 -0300)
commit7ee5b0f85f32dd6fd874a12a033798ac56ecbacc
tree0ecbdd7fdf72b7edd6c8dff38558c40c33d044aa
parent25cf39162e0a78406409842b96164c813eb8c337
Improve HERE document detection in perl-mode

* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Detect indented HERE documents when using a bare identifier.
(perl--syntax-exp-intro-keywords): Recognize HERE documents that come
after die, warn and eval.
(perl--syntax-exp-intro-regexp): Identify HERE documents when printing
to a filehandle with printf? and when they appear after a fat comma.

* test/lisp/progmodes/cperl-mode-resources/here-docs.pl: Add more tests.
lisp/progmodes/perl-mode.el
test/lisp/progmodes/cperl-mode-resources/here-docs.pl