diff options
| author | Stefan Monnier | 2012-03-14 23:09:26 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-03-14 23:09:26 -0400 |
| commit | 663b16775f660c1a10caa52e8964ee9e196af88d (patch) | |
| tree | 24d1803247a0ed26221978026d2b9112cfcd1338 | |
| parent | 103af3fe878c2816096389b3f34864e0e8636d81 (diff) | |
| download | emacs-663b16775f660c1a10caa52e8964ee9e196af88d.tar.gz emacs-663b16775f660c1a10caa52e8964ee9e196af88d.zip | |
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-special-constructs):
Fix up parsing of multiline twoarg non-paired elements.
Fixes: debbugs:11014
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 083d58b8e8f..f19d5e8ab79 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-03-15 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-03-15 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * progmodes/perl-mode.el (perl-syntax-propertize-special-constructs): | ||
| 4 | Fix up parsing of multiline twoarg non-paired elements (bug#11014). | ||
| 5 | |||
| 3 | * imenu.el: Fix multiple inheritance breakage (bug#9199). | 6 | * imenu.el: Fix multiple inheritance breakage (bug#9199). |
| 4 | (imenu-add-to-menubar): Don't add a redundant index. | 7 | (imenu-add-to-menubar): Don't add a redundant index. |
| 5 | (imenu-update-menubar): Handle a dynamically composed keymap. | 8 | (imenu-update-menubar): Handle a dynamically composed keymap. |
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index e7afd0e0e67..de728da236d 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -388,7 +388,11 @@ The expansion is entirely correct because it uses the C preprocessor." | |||
| 388 | ;; In case of error, make sure we don't move backward. | 388 | ;; In case of error, make sure we don't move backward. |
| 389 | (scan-error (goto-char startpos) nil)) | 389 | (scan-error (goto-char startpos) nil)) |
| 390 | (not (or (nth 8 (parse-partial-sexp | 390 | (not (or (nth 8 (parse-partial-sexp |
| 391 | (point) limit nil nil state 'syntax-table)) | 391 | ;; Since we don't know if point is within |
| 392 | ;; the first or the scond arg, we have to | ||
| 393 | ;; start from the beginning. | ||
| 394 | (if twoargs (1+ (nth 8 state)) (point)) | ||
| 395 | limit nil nil state 'syntax-table)) | ||
| 392 | ;; If we have a self-paired opener and a twoargs | 396 | ;; If we have a self-paired opener and a twoargs |
| 393 | ;; command, the form is s/../../ so we have to skip | 397 | ;; command, the form is s/../../ so we have to skip |
| 394 | ;; a second time. | 398 | ;; a second time. |