Loading ...
Sorry, an error occurred while loading the content.
 

Re: Syntax file problem

Expand Messages
  • Charles E Campbell Jr
    ... Hello! Instead of redefining all these clusters, perhaps using add=@rnoweb might be better: syn cluster texDocGroup add=@rnoweb ..etc.. Regards, Chip
    Message 1 of 3 , Apr 27, 2006
      Johannes Ranke wrote:

      >Hi again,
      >
      >I solved my self-posed problem. I had to extend some Tex
      >syntax clusters.
      >
      >A working version of an R noweb syntax file is attached.
      >
      >R noweb files (aka Sweave files) can have the extension .Rnw,
      >.rnw, .Snw or .snw, although .Rnw is probably predominant.
      >
      >
      >
      >>" Tex regions {{{1
      >>runtime syntax/tex.vim
      >>unlet b:current_syntax
      >>
      >>syn cluster texDocGroup contains=texPartZone,@texPartGroup,@rnoweb
      >>syn cluster texPartGroup contains=texChapterZone,texSectionZone,texParaZone,@rnoweb
      >>syn cluster texChapterGroup contains=texSectionZone,texParaZone,@rnoweb
      >>syn cluster texSectionGroup contains=texSubSectionZone,texParaZone,@rnoweb
      >>syn cluster texSubSectionGroup contains=texSubSubSectionZone,texParaZone,@rnoweb
      >>syn cluster texSubSubSectionGroup contains=texParaZone,@rnoweb
      >>syn cluster texParaGroup contains=texSubParaZone,@rnoweb
      >>
      >>
      Hello!

      Instead of redefining all these clusters, perhaps using add=@rnoweb
      might be better:

      syn cluster texDocGroup add=@rnoweb
      ..etc..

      Regards,
      Chip Campbell
    Your message has been successfully submitted and would be delivered to recipients shortly.