]> git.eshelyaron.com Git - emacs.git/commitdiff
(lisp-mode-variables): Set font-lock-comment-start-skip.
authorRichard M. Stallman <rms@gnu.org>
Sun, 15 May 2005 14:29:25 +0000 (14:29 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 15 May 2005 14:29:25 +0000 (14:29 +0000)
lisp/emacs-lisp/lisp-mode.el

index 8f4245cb9a1f541b629a84e4d7415b0b510e750a..bb815481bf005b7f445d4e63d11967de6ed7de1f 100644 (file)
   ;; Look within the line for a ; following an even number of backslashes
   ;; after either a non-backslash or the line beginning.
   (setq comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *")
+  (make-local-variable 'font-lock-comment-start-skip)
+  ;; Font lock mode uses this only when it KNOWS a comment is starting.
+  (setq font-lock-comment-start-skip ";+ *") 
   (make-local-variable 'comment-add)
   (setq comment-add 1)                 ;default to `;;' in comment-region
   (make-local-variable 'comment-column)