aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-05-23 15:49:16 +0000
committerStefan Monnier2003-05-23 15:49:16 +0000
commit8bee10187cd6af7a42b4842deb47f8813496db49 (patch)
tree5d10ad1099cea5d08cb417b6b297d0682de8c36c
parentb85a38e9e1b88808fe6dddd9fd902be519295f89 (diff)
downloademacs-8bee10187cd6af7a42b4842deb47f8813496db49.tar.gz
emacs-8bee10187cd6af7a42b4842deb47f8813496db49.zip
(perl-font-lock-syntactic-keywords): Match more cases of /.../ patterns.
-rw-r--r--lisp/progmodes/perl-mode.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el
index e01b32034b2..7017ac0d299 100644
--- a/lisp/progmodes/perl-mode.el
+++ b/lisp/progmodes/perl-mode.el
@@ -257,19 +257,20 @@ The expansion is entirely correct because it uses the C preprocessor."
257 ("\\$ ?{?^?[_a-zA-Z][_a-zA-Z0-9]*\\('\\)[_a-zA-Z]" (1 "_")) 257 ("\\$ ?{?^?[_a-zA-Z][_a-zA-Z0-9]*\\('\\)[_a-zA-Z]" (1 "_"))
258 ;; format statements 258 ;; format statements
259 ("^[ \t]*format.*=[ \t]*\\(\n\\)" (1 '(7))) 259 ("^[ \t]*format.*=[ \t]*\\(\n\\)" (1 '(7)))
260 ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)")
261 ;; Funny things in sub arg specifications like `sub myfunc ($$)' 260 ;; Funny things in sub arg specifications like `sub myfunc ($$)'
262 ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1)) 261 ("\\<sub\\s-+\\S-+\\s-*(\\([^)]+\\))" 1 '(1))
263 ;; regexp and funny quotes 262 ;; regexp and funny quotes
264 ("[;(=!~{][ \t\n]*\\(/\\)" (1 '(7))) 263 ("[?:.,;=!~({[][ \t\n]*\\(/\\)" (1 '(7)))
265 ("[;( =!~{\t\n]\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)" 264 ("[?:.,;=!~({[ \t\n]\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)"
266 ;; Nasty cases: 265 ;; Nasty cases:
267 ;; /foo/m $a->m $#m $m @m %m 266 ;; /foo/m $a->m $#m $m @m %m
268 ;; \s (appears often in regexps). 267 ;; \s (appears often in regexps).
269 ;; -s file 268 ;; -s file
270 (2 (if (assoc (char-after (match-beginning 2)) 269 (2 (if (assoc (char-after (match-beginning 2))
271 perl-quote-like-pairs) 270 perl-quote-like-pairs)
272 '(15) '(7)))))) 271 '(15) '(7))))
272 ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)")
273 ))
273 274
274(defvar perl-empty-syntax-table 275(defvar perl-empty-syntax-table
275 (let ((st (copy-syntax-table))) 276 (let ((st (copy-syntax-table)))