annotate runtime/syntax/rnoweb.vim @ 7205:c2720942f4a9

Added tag v7.4.911 for changeset 5fad7bc0fe83aee33790d58640ef4957536dfb3b
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Nov 2015 13:45:05 +0100
parents 7bc41231fbc7
children da01d5da2cfa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
836
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
1 " Vim syntax file
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
2 " Language: R noweb Files
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
3 " Maintainer: Johannes Ranke <jranke@uni-bremen.de>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1122
diff changeset
4 " Last Change: 2009 May 05
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1122
diff changeset
5 " Version: 0.9
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1122
diff changeset
6 " SVN: $Id: rnoweb.vim 84 2009-05-03 19:52:47Z ranke $
836
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
7 " Remarks: - This file is inspired by the proposal of
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
8 " Fernando Henrique Ferraz Pereira da Rosa <feferraz@ime.usp.br>
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
9 " http://www.ime.usp.br/~feferraz/en/sweavevim.html
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
10 "
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
11
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
12 " Version Clears: {{{1
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
13 " For version 5.x: Clear all syntax items
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
14 " For version 6.x and 7.x: Quit when a syntax file was already loaded
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
15 if version < 600
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
16 syntax clear
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
17 elseif exists("b:current_syntax")
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
18 finish
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
19 endif
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
20
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
21 syn case match
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
22
1122
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
23 " Extension of Tex clusters {{{1
836
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
24 runtime syntax/tex.vim
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
25 unlet b:current_syntax
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
26
1122
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
27 syn cluster texMatchGroup add=@rnoweb
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1122
diff changeset
28 syn cluster texMathMatchGroup add=rnowebSexpr
1122
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
29 syn cluster texEnvGroup add=@rnoweb
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
30 syn cluster texFoldGroup add=@rnoweb
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
31 syn cluster texDocGroup add=@rnoweb
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
32 syn cluster texPartGroup add=@rnoweb
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
33 syn cluster texChapterGroup add=@rnoweb
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
34 syn cluster texSectionGroup add=@rnoweb
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
35 syn cluster texSubSectionGroup add=@rnoweb
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
36 syn cluster texSubSubSectionGroup add=@rnoweb
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
37 syn cluster texParaGroup add=@rnoweb
836
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
38
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
39 " Highlighting of R code using an existing r.vim syntax file if available {{{1
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
40 syn include @rnowebR syntax/r.vim
1122
2ad54fcf37e3 updated for version 7.1a
vimboss
parents: 843
diff changeset
41 syn region rnowebChunk matchgroup=rnowebDelimiter start="^<<.*>>=" matchgroup=rnowebDelimiter end="^@" contains=@rnowebR,rnowebChunkReference,rnowebChunk fold keepend
836
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
42 syn match rnowebChunkReference "^<<.*>>$" contained
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
43 syn region rnowebSexpr matchgroup=Delimiter start="\\Sexpr{" matchgroup=Delimiter end="}" contains=@rnowebR
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
44
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
45 " Sweave options command {{{1
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
46 syn region rnowebSweaveopts matchgroup=Delimiter start="\\SweaveOpts{" matchgroup=Delimiter end="}"
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
47
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
48 " rnoweb Cluster {{{1
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
49 syn cluster rnoweb contains=rnowebChunk,rnowebChunkReference,rnowebDelimiter,rnowebSexpr,rnowebSweaveopts
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
50
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
51 " Highlighting {{{1
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
52 hi def link rnowebDelimiter Delimiter
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
53 hi def link rnowebSweaveOpts Statement
843
9f279ebda751 updated for version 7.0f01
vimboss
parents: 836
diff changeset
54 hi def link rnowebChunkReference Delimiter
836
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
55
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
56 let b:current_syntax = "rnoweb"
5a7843c57316 updated for version 7.0e02
vimboss
parents:
diff changeset
57 " vim: foldmethod=marker: