* c-mode: dynamic Keywords List
@ 2009-08-18 8:46 A. Soare
2009-08-18 13:48 ` Daniel Pittman
0 siblings, 1 reply; 2+ messages in thread
From: A. Soare @ 2009-08-18 8:46 UTC (permalink / raw)
To: Emacs Dev [emacs-devel]
The grammar of C language is LALR(1) if we leave out the typedef. At the beginning, the C language was designed to be LALR(1), but in time this characteristic was lost.
With typedef, the parsing tables changes dynamically. Is it possible to define dynamically the list of keywords, such that the new keywords be colored into the color defined by Font Lock Keyword Face ?
____________________________________________________
Envie de partager vos photos de vacances ? Voila vous offre 1 Go d’espace de stockage sur http://macle.voila.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c-mode: dynamic Keywords List
2009-08-18 8:46 c-mode: dynamic Keywords List A. Soare
@ 2009-08-18 13:48 ` Daniel Pittman
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Pittman @ 2009-08-18 13:48 UTC (permalink / raw)
To: emacs-devel
"A. Soare" <alinsoar@voila.fr> writes:
> The grammar of C language is LALR(1) if we leave out the typedef. At the
> beginning, the C language was designed to be LALR(1), but in time this
> characteristic was lost.
>
> With typedef, the parsing tables changes dynamically. Is it possible to
> define dynamically the list of keywords, such that the new keywords be
> colored into the color defined by Font Lock Keyword Face ?
You want the 'ctypes.el' package, not part of core:
http://www.emacswiki.org/emacs/AddKeywords#toc4
Regards,
Daniel
--
✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
Looking for work? Love Perl? In Melbourne, Australia? We are hiring.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-18 13:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-18 8:46 c-mode: dynamic Keywords List A. Soare
2009-08-18 13:48 ` Daniel Pittman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.