# HG changeset patch # User Stefan Monnier # Date 1053704956 0 # Node ID 5635fb18b7d6edd2b2aa819208a3f9949d828c55 # Parent 9b6803d4f8ef1c0d1e4e6628cf2e650ca317fe32 (perl-font-lock-syntactic-keywords): Match more cases of /.../ patterns. diff -r 9b6803d4f8ef -r 5635fb18b7d6 lisp/progmodes/perl-mode.el --- a/lisp/progmodes/perl-mode.el Fri May 23 13:35:36 2003 +0000 +++ b/lisp/progmodes/perl-mode.el Fri May 23 15:49:16 2003 +0000 @@ -257,19 +257,20 @@ ("\\$ ?{?^?[_a-zA-Z][_a-zA-Z0-9]*\\('\\)[_a-zA-Z]" (1 "_")) ;; format statements ("^[ \t]*format.*=[ \t]*\\(\n\\)" (1 '(7))) - ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)") ;; Funny things in sub arg specifications like `sub myfunc ($$)' ("\\\\s-*\\([^])}> \n\t]\\)" + ("[?:.,;=!~({[][ \t\n]*\\(/\\)" (1 '(7))) + ("[?:.,;=!~({[ \t\n]\\([msy]\\|q[qxrw]?\\|tr\\)\\>\\s-*\\([^])}> \n\t]\\)" ;; Nasty cases: ;; /foo/m $a->m $#m $m @m %m ;; \s (appears often in regexps). ;; -s file (2 (if (assoc (char-after (match-beginning 2)) perl-quote-like-pairs) - '(15) '(7)))))) + '(15) '(7)))) + ;; TODO: here-documents ("<<\\(\\sw\\|['\"]\\)") + )) (defvar perl-empty-syntax-table (let ((st (copy-syntax-table)))