diff options
| author | Vinicius Jose Latorre | 2007-08-17 18:58:32 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2007-08-17 18:58:32 +0000 |
| commit | 05927f8c8b1ea6bd82c077783ebece2ac70d32ec (patch) | |
| tree | 669a2f1648baf4895e5b07db8769670f8154b005 | |
| parent | b9c2e294883dd15ac0bea63d8f046da505a73c3a (diff) | |
| download | emacs-05927f8c8b1ea6bd82c077783ebece2ac70d32ec.tar.gz emacs-05927f8c8b1ea6bd82c077783ebece2ac70d32ec.zip | |
Fix s{a}{b} parsing
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 13 |
2 files changed, 15 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b4022fef04b..69d753121ea 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-08-17 Bob Rogers <rogers-emacs@rgrjr.dyndns.org> (tiny change) | ||
| 2 | |||
| 3 | * progmode/cperl-mode.el (cperl-look-at-leading-count) | ||
| 4 | (cperl-find-pods-heres): Fix an error when typing expressions like | ||
| 5 | `s{a}{b}'. | ||
| 6 | |||
| 1 | 2007-08-17 Glenn Morris <rgm@gnu.org> | 7 | 2007-08-17 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * progmodes/compile.el (compilation-get-file-structure): Make use | 9 | * progmodes/compile.el (compilation-get-file-structure): Make use |
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index cd7dabb8825..5a91141db6c 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -3736,8 +3736,12 @@ Should be called with the point before leading colon of an attribute." | |||
| 3736 | (set-syntax-table reset-st)))) | 3736 | (set-syntax-table reset-st)))) |
| 3737 | 3737 | ||
| 3738 | (defsubst cperl-look-at-leading-count (is-x-REx e) | 3738 | (defsubst cperl-look-at-leading-count (is-x-REx e) |
| 3739 | (if (re-search-forward (concat "\\=" (if is-x-REx "[ \t\n]*" "") "[{?+*]") | 3739 | (if (and (> (point) e) |
| 3740 | (1- e) t) ; return nil on failure, no moving | 3740 | ;; return nil on failure, no moving |
| 3741 | (re-search-forward (concat "\\=" | ||
| 3742 | (if is-x-REx "[ \t\n]*" "") | ||
| 3743 | "[{?+*]") | ||
| 3744 | (1- e) t)) | ||
| 3741 | (if (eq ?\{ (preceding-char)) nil | 3745 | (if (eq ?\{ (preceding-char)) nil |
| 3742 | (cperl-postpone-fontification | 3746 | (cperl-postpone-fontification |
| 3743 | (1- (point)) (point) | 3747 | (1- (point)) (point) |
| @@ -3750,7 +3754,7 @@ If `cperl-pod-here-fontify' is not-nil after evaluation, will fontify | |||
| 3750 | the sections using `cperl-pod-head-face', `cperl-pod-face', | 3754 | the sections using `cperl-pod-head-face', `cperl-pod-face', |
| 3751 | `cperl-here-face'." | 3755 | `cperl-here-face'." |
| 3752 | (interactive) | 3756 | (interactive) |
| 3753 | (or min (setq min (point-min) | 3757 | (or min (setq min (point-min) |
| 3754 | cperl-syntax-state nil | 3758 | cperl-syntax-state nil |
| 3755 | cperl-syntax-done-to min)) | 3759 | cperl-syntax-done-to min)) |
| 3756 | (or max (setq max (point-max))) | 3760 | (or max (setq max (point-max))) |
| @@ -4785,7 +4789,8 @@ the sections using `cperl-pod-head-face', `cperl-pod-face', | |||
| 4785 | (progn | 4789 | (progn |
| 4786 | (cperl-postpone-fontification | 4790 | (cperl-postpone-fontification |
| 4787 | (1- e1) e1 'face my-cperl-delimiters-face) | 4791 | (1- e1) e1 'face my-cperl-delimiters-face) |
| 4788 | (if (assoc (char-after b) cperl-starters) | 4792 | (if (and (not (eobp)) |
| 4793 | (assoc (char-after b) cperl-starters)) | ||
| 4789 | (progn | 4794 | (progn |
| 4790 | (cperl-postpone-fontification | 4795 | (cperl-postpone-fontification |
| 4791 | b1 (1+ b1) 'face my-cperl-delimiters-face) | 4796 | b1 (1+ b1) 'face my-cperl-delimiters-face) |