mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08:00
CPerl-mode: don't treat <<>> as starting a here-doc
* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Detect the "<<>>" operator (Bug#42455). * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-45255): Verify that <<>> does not start a HERE-doc.
This commit is contained in:
parent
6eb6357423
commit
32d85e3079
2 changed files with 10 additions and 1 deletions
|
|
@ -3694,13 +3694,14 @@ the sections using `cperl-pod-head-face', `cperl-pod-face',
|
|||
;; ;; "\\([^= \t0-9$@%&]\\|[ \t]+[^ \t\n0-9$@%&]\\)" ; 6 + 1
|
||||
;; "\\(\\)" ; To preserve count of pars :-( 6 + 1
|
||||
;; "\\)"
|
||||
((match-beginning 3) ; 2 + 1
|
||||
((match-beginning 3) ; 2 + 1: found "<<", detect its type
|
||||
(setq b (point)
|
||||
tb (match-beginning 0)
|
||||
c (and ; not HERE-DOC
|
||||
(match-beginning 6)
|
||||
(save-match-data
|
||||
(or (looking-at "[ \t]*(") ; << function_call()
|
||||
(looking-at ">>") ; <<>> operator
|
||||
(save-excursion ; 1 << func_name, or $foo << 10
|
||||
(condition-case nil
|
||||
(progn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue