[ESS] Syntax Highlighting

Vitalie Spinu spinuvit at gmail.com
Thu Jan 31 15:30:43 CET 2013


  >> Oliver Jones <ojones at wiwi.uni-bielefeld.de>
  >> on Thu, 31 Jan 2013 15:09:02 +0100 wrote:

  > Looking in too ess-sta-l.el I couldn't figure out where the symbols for
  > indicating comments are defined. Neither could I figure out where I can modify
  > the variable STA-syntax-table (M-x 
  > customize-variable RET STA-syntax-table RET give NO MATCH) or where I should include
  > (modify-syntax-entry ?* "<" STA-syntax-table)

  > Do I have to copy that line in my ~/.emacs.d/init.el ?

Yes, this is what Rodney meant. But it will not quite work because "<"
defines a start of a block comment and not a fence comment (which I
assume is what you need).

What is exactly the use of * in STATA? Are you sure it is a comment
symbol? How does the multiplication work then?

There are two comments in stata that ESS currently supports // for fence
comment (aka one line) and /* ... */ for block comments.  And I don't
see an easy way to implement * as a fence comment without screwing
multiplication or standard /* ... */ comment (at least not with
syntactic tables).

    Vitalie



More information about the ESS-help mailing list