annotate runtime/syntax/rib.vim @ 8462:9b1f271c9769

Added tag v7.4.1521 for changeset 988ddc5742f5848cd37f8c9e5b5f01a83e228c84
author Christian Brabandt <cb@256bit.org>
date Tue, 08 Mar 2016 19:30:05 +0100
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Renderman Interface Bytestream
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Andrew Bromage <ajb@spamcop.net>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 May 11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Remove any old syntax stuff hanging around
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syn clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match ribLineComment "#.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match ribStructureComment "##.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match ribCommand /[A-Z][a-zA-Z]*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn region ribString start=/"/ skip=/\\"/ end=/"/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match ribStructure "[A-Z][a-zA-Z]*Begin\>\|[A-Z][a-zA-Z]*End"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region ribSectionFold start="FrameBegin" end="FrameEnd" fold transparent keepend extend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region ribSectionFold start="WorldBegin" end="WorldEnd" fold transparent keepend extend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region ribSectionFold start="TransformBegin" end="TransformEnd" fold transparent keepend extend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region ribSectionFold start="AttributeBegin" end="AttributeEnd" fold transparent keepend extend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn region ribSectionFold start="MotionBegin" end="MotionEnd" fold transparent keepend extend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region ribSectionFold start="SolidBegin" end="SolidEnd" fold transparent keepend extend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region ribSectionFold start="ObjectBegin" end="ObjectEnd" fold transparent keepend extend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn sync fromstart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 "integer number, or floating point number without a dot and with "f".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match ribNumbers display transparent "[-]\=\<\d\|\.\d" contains=ribNumber,ribFloat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match ribNumber display contained "[-]\=\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 "floating point number, with dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match ribFloat display contained "[-]\=\d\+\.\d*\(e[-+]\=\d\+\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 "floating point number, starting with a dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match ribFloat display contained "[-]\=\.\d\+\(e[-+]\=\d\+\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 "floating point number, without dot, with exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match ribFloat display contained "[-]\=\d\+e[-+]\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 if version >= 508 || !exists("did_rib_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 let did_rib_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink ribStructure Structure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink ribCommand Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink ribStructureComment SpecialComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink ribLineComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink ribString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink ribNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink ribFloat Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 let b:current_syntax = "rib"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " Options for vi: ts=8 sw=2 sts=2 nowrap noexpandtab ft=vim