aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2005-06-29 07:59:36 +0000
committerStefan Monnier2005-06-29 07:59:36 +0000
commit00424a9ec16c05993331c01d6486fd131478ede5 (patch)
tree9f759841fbb058bff41a6ee2c0e23177447fab5c /lisp
parent01d378257d9d771511209cb051ec2cff6760dfc7 (diff)
downloademacs-00424a9ec16c05993331c01d6486fd131478ede5.tar.gz
emacs-00424a9ec16c05993331c01d6486fd131478ede5.zip
(cperl-find-pods-heres): Don't gratuitously
reset the syntax-table to cperl-mode-syntax-table. (cperl-mode): Make _ into word-syntax during font-locking so "print" in "foo_print_bar" is not matched as a reserved keyword.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/cperl-mode.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index d95c0294c4d..63b7ceb6ed0 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -1516,7 +1516,8 @@ or as help on variables `cperl-tips', `cperl-problems',
1516 (t 1516 (t
1517 '((cperl-load-font-lock-keywords 1517 '((cperl-load-font-lock-keywords
1518 cperl-load-font-lock-keywords-1 1518 cperl-load-font-lock-keywords-1
1519 cperl-load-font-lock-keywords-2))))) 1519 cperl-load-font-lock-keywords-2)
1520 nil nil ((?_ . "w"))))))
1520 (make-local-variable 'cperl-syntax-state) 1521 (make-local-variable 'cperl-syntax-state)
1521 (if cperl-use-syntax-table-text-property 1522 (if cperl-use-syntax-table-text-property
1522 (progn 1523 (progn
@@ -3840,7 +3841,11 @@ the sections using `cperl-pod-head-face', `cperl-pod-face',
3840 (and (buffer-modified-p) 3841 (and (buffer-modified-p)
3841 (not modified) 3842 (not modified)
3842 (set-buffer-modified-p nil)) 3843 (set-buffer-modified-p nil))
3843 (set-syntax-table cperl-mode-syntax-table)) 3844 ;; I do not understand what this is doing here. It breaks font-locking
3845 ;; because it resets the syntax-table from font-lock-syntax-table to
3846 ;; cperl-mode-syntax-table.
3847 ;; (set-syntax-table cperl-mode-syntax-table)
3848 )
3844 (car err-l))) 3849 (car err-l)))
3845 3850
3846(defun cperl-backward-to-noncomment (lim) 3851(defun cperl-backward-to-noncomment (lim)