>>>> "Jake" == Jake Colman
<jake.colman(a)xemacs.org> writes:
Jake> Bryan,
Jake> I tried this:
Jake> (setq c++-font-lock-keywords
Jake> (append c++-font-lock-keywords
Jake> (list '(".*foreach.*" 1 font-lock-keyword-face t))))
Jake> but to no avail. I did check that in the c++-mode buffer,
Jake> the c++-font-lock-keywords variable has my setting but it
Jake> still did not fontify. Am I supposed to specify the regexp
Jake> for my new keyword differently somehow? Also, what is the
Jake> final 't' used for in the list?
Hello Jake, see
`font-lock-keywords' (buffer: *Hyper Apropos*, mode: Hyper-Apropos)
The t you refer to is the OVERRIDE argument in above documentation:
FONT-LOCK-FORM :== MATCHER
| (MATCHER . MATCH)
| (MATCHER . FACE-FORM)
| (MATCHER . HIGHLIGHT)
| (MATCHER HIGHLIGHT ...)
| (eval . FORM)
MATCH-HIGHLIGHT :== (MATCH FACE-FORM OVERRIDE LAXMATCH)
OVERRIDE :== t - overwrite existing fontification
| 'keep - only parts not already fontified are
highlighted.
| 'prepend - merge faces, this fontification has
precedence over existing
| 'append - merge faces, existing fontification has
precedence over
this face.
Hope this helps,
Adrian
Jake> Thanks!
Jake> --
Jake> Jake Colman -- XEmacs Tinkerer
--
Adrian Aichner
mailto:adrianï¼ xemacs.org
http://www.xemacs.org/