[ESS-bugs] new font-locking in *.Rnw: [[...]] looks wrong

Vitalie Spinu spinuvit at gmail.com
Wed Sep 26 12:40:03 CEST 2012


  >> Vitalie Spinu <spinuvit at gmail.com>
  >> on Wed, 26 Sep 2012 11:55:25 +0200 wrote:

[...]


  VS> I have also noticed this, but didn't bother much. Not sure where it
  VS> comes from. 

ess-noweb-font-lock has:

╭──────── #261 ─ /home/vitoshka/ESS/git/lisp/ess-noweb-font-lock-mode.el ──
│           (append font-lock-keywords
│                   '(("\\(\\[\\[\\)\\([^]]*\\]*\\)\\(\\]\\]\\|\\$\\)"
│                      (1 font-lock-reference-face prepend )
│                      (2 font-lock-keyword-face prepend)
│                      (3 font-lock-reference-face prepend))
│                     ("^[ \t\n]*\\(<<\\)\\([^>]*\\)\\(>>=?\\)"
│                      (1 font-lock-reference-face  prepend )
│                      (2 font-lock-keyword-face prepend)
│                      (3 font-lock-reference-face prepend))
│                     ("^@[ \t\n]+"
│                      (0 font-lock-reference-face prepend )))))
╰──────── #271 ─


Noweb syntax defines [[expresion]] as inline expression and messes
directly with font-lock-keywords which leads to an unfortunate
interplay.

This functionality is useless for Sweave as it uses \Sexp{} for
inlines. So I have removed those keywords in trunk. It's fine now.

    Vitalie



More information about the ESS-bugs mailing list