# HG changeset patch # User Stefan Monnier # Date 1034976846 0 # Node ID db56d4bb5e011016fcacde263d88a7115303f3db # Parent 9adcff292f1452411685191bb87b87ea118ecf0d (perl-mode-syntax-table): Change $ back to just "/" instead of "/ p". (perl-font-lock-syntactic-keywords): Use ". p" for the `$'. diff -r 9adcff292f14 -r db56d4bb5e01 lisp/progmodes/perl-mode.el --- a/lisp/progmodes/perl-mode.el Fri Oct 18 15:27:18 2002 +0000 +++ b/lisp/progmodes/perl-mode.el Fri Oct 18 21:34:06 2002 +0000 @@ -139,7 +139,9 @@ (let ((st (make-syntax-table (standard-syntax-table)))) (modify-syntax-entry ?\n ">" st) (modify-syntax-entry ?# "<" st) - (modify-syntax-entry ?$ "/ p" st) + ;; `$' is also a prefix char so I was tempted to say "/ p", + ;; but the `p' thingy basically overrides the `/' :-( --stef + (modify-syntax-entry ?$ "/" st) (modify-syntax-entry ?% ". p" st) (modify-syntax-entry ?@ ". p" st) (modify-syntax-entry ?& "." st) @@ -250,7 +252,7 @@ ;; Catch ${ so that ${var} doesn't screw up indentation. ;; This also catches $' to handle 'foo$', although it should really ;; check that it occurs inside a '..' string. - ("\\(\\$\\)[{']" (1 ".")) + ("\\(\\$\\)[{']" (1 ". p")) ;; Handle funny names like $DB'stop. ("\\$ ?{?^?[_a-zA-Z][_a-zA-Z0-9]*\\('\\)[_a-zA-Z]" (1 "_")) ;; format statements