[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font-lock-comment-delimiter-face

From: Ralf Angeli
Subject: Re: font-lock-comment-delimiter-face
Date: Sat, 14 May 2005 18:11:40 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (berkeley-unix)

* Richard Stallman (2005-05-11) writes:

> Those were the only uses yet implemented for it,
> but now I've changed font-lock-fontify-syntactically-region
> to use it for comment delimiters.  I think this will work
> for all modes.  It works for C mode and Lisp mode.

In Lisp mode it fails to apply `font-lock-comment-delimiter-face' to a
single ";" as long as it is not located at the start of a line.  The
cause is probably that `comment-start-skip' in Lisp mode contains
precautions for not matching escaped semicolons:

  (setq comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *")

It appears strange to me that `(looking-at comment-start-skip)' with
this regexp returns t in case of multiple semicolons but nil in case
of a single one.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]