emacs-devel
[Top][All Lists]
Advanced

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

Re: Request for changing regexp for `&' lambda list keywords


From: Kevin Rodgers
Subject: Re: Request for changing regexp for `&' lambda list keywords
Date: Tue, 24 Jan 2006 12:44:04 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Tobias C. Rittweiler wrote:
Hi Emacs-hackers,

the regexp responsible for recognizing lambda list keywords looks
currently like this:
  ;; ELisp and CLisp `&' keywords as types.
  ("\\&\\sw+\\>" . font-lock-type-face)

(part of LISP-FONT-LOCK-KEYWORDS-2 in `font-lock.el')

I'd like to propose changing the regexp to "\\<\\&\sw+\\>" such that
symbols like, for instance, the symbol `FROB-&KEY-PARAMETERS' that
surely names a function, don't get fontified just right after the
ampersand in FONT-LOCK-TYPE-FACE.

Either way, why does the ampersand need to be escaped with a backslash?

--
Kevin Rodgers





reply via email to

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