* Request for changing regexp for `&' lambda list keywords
@ 2006-01-23 14:17 Tobias C. Rittweiler
2006-01-24 13:38 ` Thien-Thi Nguyen
2006-01-24 19:44 ` Kevin Rodgers
0 siblings, 2 replies; 3+ messages in thread
From: Tobias C. Rittweiler @ 2006-01-23 14:17 UTC (permalink / raw)
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.
-*- tcr
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Request for changing regexp for `&' lambda list keywords
2006-01-23 14:17 Request for changing regexp for `&' lambda list keywords Tobias C. Rittweiler
@ 2006-01-24 13:38 ` Thien-Thi Nguyen
2006-01-24 19:44 ` Kevin Rodgers
1 sibling, 0 replies; 3+ messages in thread
From: Thien-Thi Nguyen @ 2006-01-24 13:38 UTC (permalink / raw)
Cc: emacs-devel
"Tobias C. Rittweiler" <tcr@freebits.de> writes:
> changing the regexp to "\\<\\&\sw+\\>"
done. thanks.
thi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Request for changing regexp for `&' lambda list keywords
2006-01-23 14:17 Request for changing regexp for `&' lambda list keywords Tobias C. Rittweiler
2006-01-24 13:38 ` Thien-Thi Nguyen
@ 2006-01-24 19:44 ` Kevin Rodgers
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2006-01-24 19:44 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-24 19:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-23 14:17 Request for changing regexp for `&' lambda list keywords Tobias C. Rittweiler
2006-01-24 13:38 ` Thien-Thi Nguyen
2006-01-24 19:44 ` Kevin Rodgers
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).