aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2002-10-18 21:35:05 +0000
committerStefan Monnier2002-10-18 21:35:05 +0000
commit42be8f2ecab18c3ba0474a524f1b5e2cd7d2be40 (patch)
treed1c5ee70df580460896b4216dff3dcf6e544c14c
parenta9645a6697106448d68dd24c68ee4f91e65a086b (diff)
downloademacs-42be8f2ecab18c3ba0474a524f1b5e2cd7d2be40.tar.gz
emacs-42be8f2ecab18c3ba0474a524f1b5e2cd7d2be40.zip
(perl-mode-syntax-table): Change $ back to just "/" instead of "/ p".
(perl-font-lock-syntactic-keywords): Use ". p" for the `$'.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/perl-mode.el6
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 @@
12002-10-18 Stefan Monnier <monnier@rum.cs.yale.edu>
2
3 * progmodes/perl-mode.el (perl-mode-syntax-table): Change $ back
4 to just "/" instead of "/ p".
5 (perl-font-lock-syntactic-keywords): Use ". p" for the `$'.
6
12002-10-18 Juanma Barranquero <lektu@terra.es> 72002-10-18 Juanma Barranquero <lektu@terra.es>
2 8
3 * textmodes/artist.el (artist-ff-is-bottommost-line): Fix misplaced 9 * 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."
139 (let ((st (make-syntax-table (standard-syntax-table)))) 139 (let ((st (make-syntax-table (standard-syntax-table))))
140 (modify-syntax-entry ?\n ">" st) 140 (modify-syntax-entry ?\n ">" st)
141 (modify-syntax-entry ?# "<" st) 141 (modify-syntax-entry ?# "<" st)
142 (modify-syntax-entry ?$ "/ p" st) 142 ;; `$' is also a prefix char so I was tempted to say "/ p",
143 ;; but the `p' thingy basically overrides the `/' :-( --stef
144 (modify-syntax-entry ?$ "/" st)
143 (modify-syntax-entry ?% ". p" st) 145 (modify-syntax-entry ?% ". p" st)
144 (modify-syntax-entry ?@ ". p" st) 146 (modify-syntax-entry ?@ ". p" st)
145 (modify-syntax-entry ?& "." st) 147 (modify-syntax-entry ?& "." st)
@@ -250,7 +252,7 @@ The expansion is entirely correct because it uses the C preprocessor."
250 ;; Catch ${ so that ${var} doesn't screw up indentation. 252 ;; Catch ${ so that ${var} doesn't screw up indentation.
251 ;; This also catches $' to handle 'foo$', although it should really 253 ;; This also catches $' to handle 'foo$', although it should really
252 ;; check that it occurs inside a '..' string. 254 ;; check that it occurs inside a '..' string.
253 ("\\(\\$\\)[{']" (1 ".")) 255 ("\\(\\$\\)[{']" (1 ". p"))
254 ;; Handle funny names like $DB'stop. 256 ;; Handle funny names like $DB'stop.
255 ("\\$ ?{?^?[_a-zA-Z][_a-zA-Z0-9]*\\('\\)[_a-zA-Z]" (1 "_")) 257 ("\\$ ?{?^?[_a-zA-Z][_a-zA-Z0-9]*\\('\\)[_a-zA-Z]" (1 "_"))
256 ;; format statements 258 ;; format statements