aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorStefan Monnier2005-09-07 19:54:49 +0000
committerStefan Monnier2005-09-07 19:54:49 +0000
commitdcc6da3a1cf566b4ba8792814ebf93eed7581344 (patch)
treec28b73a8a0208198bf53bdf639a3457f3216b91d /lisp/progmodes
parent2ccc02f2182ab453ef5b056415e16df4454d426e (diff)
downloademacs-dcc6da3a1cf566b4ba8792814ebf93eed7581344.tar.gz
emacs-dcc6da3a1cf566b4ba8792814ebf93eed7581344.zip
(perl-font-lock-syntactic-keywords):
Fix regexp for when "s///" is at the beginning of line.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/perl-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el
index 7991f1fd1b4..e1af8b0f007 100644
--- a/lisp/progmodes/perl-mode.el
+++ b/lisp/progmodes/perl-mode.el
@@ -267,12 +267,12 @@ The expansion is entirely correct because it uses the C preprocessor."
267 ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1)) 267 ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1))
268 ;; regexp and funny quotes 268 ;; regexp and funny quotes
269 ("[?:.,;=!~({[][ \t\n]*\\(/\\)" (1 '(7))) 269 ("[?:.,;=!~({[][ \t\n]*\\(/\\)" (1 '(7)))
270 ("[?:.,;=!~({[ \t\n]\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)" 270 ("\\(^\\|[?:.,;=!~({[ \t]\\)\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)"
271 ;; Nasty cases: 271 ;; Nasty cases:
272 ;; /foo/m $a->m $#m $m @m %m 272 ;; /foo/m $a->m $#m $m @m %m
273 ;; \s (appears often in regexps). 273 ;; \s (appears often in regexps).
274 ;; -s file 274 ;; -s file
275 (2 (if (assoc (char-after (match-beginning 2)) 275 (3 (if (assoc (char-after (match-beginning 3))
276 perl-quote-like-pairs) 276 perl-quote-like-pairs)
277 '(15) '(7)))) 277 '(15) '(7))))
278 ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)") 278 ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)")