[ESS] Syntax highlighting not working for keywords with uppercase letters in ESS[SAS]

Rodney Sparapani rsparapa at mcw.edu
Wed Jan 7 22:08:30 CET 2009


Christian Keller wrote:
> Hi Rodney
>
> Thanks a lot for the quick reply. The bug fix works perfectly.
>
> Best regards
> Christian
Hi Christian:

It's only a workaround and no better than the one that you proposed. 
I've found that it is not the right way to do this.  What needs to
be done can be seen in the documentation of the variable font-lock-defaults
on XEmacs.  However, the GNU Emacs docs don't tell you HOW-TO
and the XEmacs way doesn't seem to work there.  Here's the XEmacs approach
(after commenting out line 201 in essd-sas.el; put the following on
line 236):

(put 'SAS-mode 'font-lock-defaults '('SAS-mode-font-lock-keywords nil t))

which you can see has been set after loading a .sas file (which will
be fontified, but for lower-case only) by typing this in *scratch* and
hitting C-j:

(get 'SAS-mode 'font-lock-defaults)

But, no dice.  Can a GNUbie out there explain how to do this the right way?

-- 
Rodney Sparapani      Center for Patient Care & Outcomes Research (PCOR)
Sr. Biostatistician              http://www.mcw.edu/pcor
4 wheels good, 2 wheels better!  Medical College of Wisconsin (MCW)
WWLD?:  What Would Lombardi Do?  Milwaukee, WI, USA




More information about the ESS-help mailing list