codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Renderman Interface Bytestream3" Maintainer: Andrew Bromage <ajb@spamcop.net>4" Last Change: 2003 May 115"6 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9 finish10endif11 12syn case match13 14" Comments15syn match ribLineComment "#.*$"16syn match ribStructureComment "##.*$"17 18syn case ignore19syn match ribCommand /[A-Z][a-zA-Z]*/20syn case match21 22syn region ribString start=/"/ skip=/\\"/ end=/"/23 24syn match ribStructure "[A-Z][a-zA-Z]*Begin\>\|[A-Z][a-zA-Z]*End"25syn region ribSectionFold start="FrameBegin" end="FrameEnd" fold transparent keepend extend26syn region ribSectionFold start="WorldBegin" end="WorldEnd" fold transparent keepend extend27syn region ribSectionFold start="TransformBegin" end="TransformEnd" fold transparent keepend extend28syn region ribSectionFold start="AttributeBegin" end="AttributeEnd" fold transparent keepend extend29syn region ribSectionFold start="MotionBegin" end="MotionEnd" fold transparent keepend extend30syn region ribSectionFold start="SolidBegin" end="SolidEnd" fold transparent keepend extend31syn region ribSectionFold start="ObjectBegin" end="ObjectEnd" fold transparent keepend extend32 33syn sync fromstart34 35"integer number, or floating point number without a dot and with "f".36syn case ignore37syn match ribNumbers display transparent "[-]\=\<\d\|\.\d" contains=ribNumber,ribFloat38syn match ribNumber display contained "[-]\=\d\+\>"39"floating point number, with dot, optional exponent40syn match ribFloat display contained "[-]\=\d\+\.\d*\(e[-+]\=\d\+\)\="41"floating point number, starting with a dot, optional exponent42syn match ribFloat display contained "[-]\=\.\d\+\(e[-+]\=\d\+\)\=\>"43"floating point number, without dot, with exponent44syn match ribFloat display contained "[-]\=\d\+e[-+]\d\+\>"45syn case match46 47 48hi def link ribStructure Structure49hi def link ribCommand Statement50 51hi def link ribStructureComment SpecialComment52hi def link ribLineComment Comment53 54hi def link ribString String55hi def link ribNumber Number56hi def link ribFloat Float57 58 59 60let b:current_syntax = "rib"61 62" Options for vi: ts=8 sw=2 sts=2 nowrap noexpandtab ft=vim63 