[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cperl-mode Parsing Bug
From: |
Stefan Monnier |
Subject: |
Re: cperl-mode Parsing Bug |
Date: |
Wed, 27 Apr 2005 15:47:17 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) |
> cperl-mode 5.0-Emacs does not properly parse POD, regular expressions,
> or q* operators. When I start emacs -Q and enable font-lock-mode and
> load the following program under cperl-mode, the regular expression is
> not properly parsed and highlighted (if I were to insert a "'" into it,
> it would think that the rest of the script was a string!). The POD is
> not recognized as separate from the program, and the qq{} operator in
> the last line is not marked as a string.
Thank you. I've installed the patch below which I believe should fix
your problem.
Index: lisp/progmodes/cperl-mode.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/cperl-mode.el,v
retrieving revision 1.60
diff -u -r1.60 cperl-mode.el
--- lisp/progmodes/cperl-mode.el 25 Mar 2005 10:06:23 -0000 1.60
+++ lisp/progmodes/cperl-mode.el 27 Apr 2005 19:44:16 -0000
@@ -1514,7 +1514,7 @@
(make-local-variable 'font-lock-syntactic-keywords)
(setq font-lock-syntactic-keywords
(if cperl-syntaxify-by-font-lock
- '(t (cperl-fontify-syntaxically))
+ '((cperl-fontify-syntaxically))
'(t)))))
(make-local-variable 'cperl-old-style)
(if (boundp 'normal-auto-fill-function) ; 19.33 and later