From 42be8f2ecab18c3ba0474a524f1b5e2cd7d2be40 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 18 Oct 2002 21:35:05 +0000 Subject: [PATCH] (perl-mode-syntax-table): Change $ back to just "/" instead of "/ p". (perl-font-lock-syntactic-keywords): Use ". p" for the `$'. --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/perl-mode.el | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2cefa07b188..b520e9f99b0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2002-10-18 Stefan Monnier + + * progmodes/perl-mode.el (perl-mode-syntax-table): Change $ back + to just "/" instead of "/ p". + (perl-font-lock-syntactic-keywords): Use ". p" for the `$'. + 2002-10-18 Juanma Barranquero * textmodes/artist.el (artist-ff-is-bottommost-line): Fix misplaced diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 2b12f86e29b..626310a2261 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -139,7 +139,9 @@ The expansion is entirely correct because it uses the C preprocessor." (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 @@ The expansion is entirely correct because it uses the C preprocessor." ;; 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 -- 2.39.2