aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2007-08-16 14:20:37 +0000
committerStefan Monnier2007-08-16 14:20:37 +0000
commited0e2ad11b2b80f7a8505b72285c7ff041a5b37b (patch)
tree19fa56a65c155d294d406058cc841ca8a880fb1d /lisp
parent4d78a860b9ee2b830d6b9fc67e55c83d516df0c4 (diff)
downloademacs-ed0e2ad11b2b80f7a8505b72285c7ff041a5b37b.tar.gz
emacs-ed0e2ad11b2b80f7a8505b72285c7ff041a5b37b.zip
(perl-font-lock-syntactic-keywords): Correctly match / regexp matchers
as first char on a line when fontifying only that line.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/progmodes/perl-mode.el12
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 16edb115181..33b2c21eeed 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12007-08-16 Stefan Monnier <monnier@iro.umontreal.ca> 12007-08-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * progmodes/perl-mode.el (perl-font-lock-syntactic-keywords):
4 Correctly match / regexp matchers as first char on a line when
5 fontifying only that line.
6
3 * emacs-lisp/cl-macs.el (cl-transform-lambda): Preserve the match-data. 7 * emacs-lisp/cl-macs.el (cl-transform-lambda): Preserve the match-data.
4 8
52007-08-16 Glenn Morris <rgm@gnu.org> 92007-08-16 Glenn Morris <rgm@gnu.org>
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el
index cfef0eedfe4..f2feff595bb 100644
--- a/lisp/progmodes/perl-mode.el
+++ b/lisp/progmodes/perl-mode.el
@@ -267,8 +267,16 @@ The expansion is entirely correct because it uses the C preprocessor."
267 ("^[ \t]*format.*=[ \t]*\\(\n\\)" (1 '(7))) 267 ("^[ \t]*format.*=[ \t]*\\(\n\\)" (1 '(7)))
268 ;; Funny things in sub arg specifications like `sub myfunc ($$)' 268 ;; Funny things in sub arg specifications like `sub myfunc ($$)'
269 ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1)) 269 ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1))
270 ;; regexp and funny quotes 270 ;; Regexp and funny quotes.
271 ("[?:.,;=!~({[][ \t\n]*\\(/\\)" (1 '(7))) 271 ("\\(?:[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)"
272 (2 (if (and (match-end 1)
273 (save-excursion
274 (goto-char (match-end 1))
275 (skip-chars-backward " \t\n")
276 (not (memq (char-before)
277 '(?? ?: ?. ?, ?\; ?= ?! ?~ ?\( ?\[)))))
278 nil ;; A division sign instead of a regexp-match.
279 '(7))))
272 ("\\(^\\|[?:.,;=!~({[ \t]\\)\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)" 280 ("\\(^\\|[?:.,;=!~({[ \t]\\)\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)"
273 ;; Nasty cases: 281 ;; Nasty cases:
274 ;; /foo/m $a->m $#m $m @m %m 282 ;; /foo/m $a->m $#m $m @m %m