Mercurial > vim
comparison runtime/syntax/r.vim @ 625:81fe2ccc1207 v7.0179
updated for version 7.0179
author | vimboss |
---|---|
date | Thu, 12 Jan 2006 23:22:24 +0000 |
parents | 3fc0f57ecb91 |
children | 8cd729851562 |
comparison
equal
deleted
inserted
replaced
624:91e7d4a7b3b0 | 625:81fe2ccc1207 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: R (GNU S) | 2 " Language: R (GNU S) |
3 " Maintainer: Tom Payne <tom@tompayne.org> | 3 " Maintainer: Vaidotas Zemlys <zemlys@gmail.com> |
4 " Last Change: 2003 May 11 | 4 " Last Change: 2006 January 12 |
5 " Filenames: *.r | 5 " Filenames: *.R *.Rout *.r *.Rhistory *.Rt *.Rout.save *.Rout.fail |
6 " URL: http://www.tompayne.org/vim/syntax/r.vim | 6 " URL: http://uosis.mif.vu.lt/~zemlys/vim-syntax/r.vim |
7 | |
8 " First maintainer Tom Payne <tom@tompayne.org> | |
9 " Modified to make syntax less colourful and added the highlighting of | |
10 " R assignment arrow | |
7 | 11 |
8 " For version 5.x: Clear all syntax items | 12 " For version 5.x: Clear all syntax items |
9 " For version 6.x: Quit when a syntax file was already loaded | 13 " For version 6.x: Quit when a syntax file was already loaded |
10 if version < 600 | 14 if version < 600 |
11 syntax clear | 15 syntax clear |
52 " Constant | 56 " Constant |
53 syn keyword rConstant LETTERS letters month.ab month.name pi | 57 syn keyword rConstant LETTERS letters month.ab month.name pi |
54 syn keyword rConstant NULL | 58 syn keyword rConstant NULL |
55 syn keyword rBoolean FALSE TRUE | 59 syn keyword rBoolean FALSE TRUE |
56 syn keyword rNumber NA | 60 syn keyword rNumber NA |
61 syn match rArrow /<\{1,2}-/ | |
57 | 62 |
58 " Type | 63 " Type |
59 syn keyword rType array category character complex double function integer list logical matrix numeric vector | 64 syn keyword rType array category character complex double function integer list logical matrix numeric vector data.frame |
60 | 65 |
61 " Special | 66 " Special |
62 syn match rDelimiter /[,;:]/ | 67 syn match rDelimiter /[,;:]/ |
63 | 68 |
64 " Error | 69 " Error |
87 HiLink rBoolean Boolean | 92 HiLink rBoolean Boolean |
88 HiLink rFloat Float | 93 HiLink rFloat Float |
89 HiLink rStatement Statement | 94 HiLink rStatement Statement |
90 HiLink rConditional Conditional | 95 HiLink rConditional Conditional |
91 HiLink rRepeat Repeat | 96 HiLink rRepeat Repeat |
92 HiLink rIdentifier Identifier | 97 HiLink rIdentifier Normal |
93 HiLink rType Type | 98 HiLink rArrow Statement |
99 HiLink rType Type | |
94 HiLink rDelimiter Delimiter | 100 HiLink rDelimiter Delimiter |
95 HiLink rError Error | 101 HiLink rError Error |
96 HiLink rBraceError Error | 102 HiLink rBraceError Error |
97 HiLink rCurlyError Error | 103 HiLink rCurlyError Error |
98 HiLink rParenError Error | 104 HiLink rParenError Error |
100 endif | 106 endif |
101 | 107 |
102 let b:current_syntax="r" | 108 let b:current_syntax="r" |
103 | 109 |
104 " vim: ts=8 sw=2 | 110 " vim: ts=8 sw=2 |
111 |