[ESS-bugs] comment highlight breaks on double-quote

Rodney Sparapani rsparapa at mcw.edu
Mon Sep 13 22:35:06 CEST 2010


On 09/ 9/10 04:59 PM, Jack Tanner wrote:
> In ess-bugs-mode in ess 5.10, adding a double quote " inside a comment
> disables the comment syntax highlight, like so:
>
> # i am highlighted correctly
> # i am ok with a ' single quote
> # my highlight is gone with a " mark
> # and it's also gone with two "" marks
>    
This behavior is not restricted to ESS[BUGS].  The issue stems from
the way that emacs does syntax highlighting.  There are keywords and
"grammar".  I believe it is the latter that is biting you here.  However,
this bug is endemic; I see it in SAS .logs as well.

FWIW, comments are also dictated by the "grammar" so there is a conflict 
some where at a fairly low-level in either ESS, or perhaps, emacs itself
(and, apparently, it would have to be in both GNU Emacs and XEmacs which
makes that slightly less likely, but not impossible).  In either case,
I don't know where it's coming from and I just ignore it; although, I'll
admit, it is kind of annoying.  sh-mode has similar problems with $#;
so I'm guessing this kind of thing is not so easy to fix.

-- 
Rodney Sparapani       Center for Patient Care and Outcomes Research
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-bugs mailing list