" Vim syntax file for OpenGL ARB vertex programs " Language: ARBvp " Author: Camilla Berglund " Date: July 19, 2006 " File Types: .vp .vert " Version: 0.1 if version < 600 syntax clear elseif exists("b:current_syntax") finish endif syn case match syn keyword opcode RSQ MAD EX2 ABS SGE MAX EXP ADD SLT MIN FLR ARL DST syn keyword opcode SUB MOV FRC DP3 SWZ MUL LG2 DP4 XPD POW LIT DPH RCP LOG syn keyword declaration ADDRESS ATTRIB ALIAS PARAM OUTPUT TEMP syn keyword special END OPTION syn keyword option ARB_position_invariant syn match identifier "[_a-zA-Z$][_a-zA-Z0-9$]*" syn match header "!!ARBvp[0-9]\.[0-9]" syn match comment "#.*" syn match integer "[-+]\=[0-9]\+" syn match float "[-+]\=[0-9]\+\.[0-9]*" syn match float "[-+]\=[0-9]*\.[0-9]\+" syn region block start="{" end="}" contains=identifier,integer,float if version >= 508 || !exists("did_arbvp_syntax_inits") if version < 508 let did_arbvp_syntax_inits = 1 command -nargs=+ HiLink hi link else command -nargs=+ HiLink hi def link endif HiLink opcode Keyword HiLink special Keyword HiLink header Keyword HiLink declaration Keyword HiLink option Keyword HiLink comment Comment HiLink identifier Identifier HiLink integer Number HiLink float Number delcommand HiLink endif let b:current_syntax = "arbvp"