From 84e45693839a3699de2b193485909c8263804d6f Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 6 Oct 2010 21:10:16 +0000 Subject: [PATCH] added new control keywords and identifiers to vim syntax file git-svn-id: svn://anubis/fart/trunk@348 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- vim/syntax/fart.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vim/syntax/fart.vim b/vim/syntax/fart.vim index a835a17..1989499 100644 --- a/vim/syntax/fart.vim +++ b/vim/syntax/fart.vim @@ -12,12 +12,16 @@ syn case match syn keyword fartKeywords ambient ambient_occlusion color define diffuse exposure height jitter look_at material max_depth multisample ngon offset polygon position radius reflectance rotate scale shininess size specular translate transparency union up vfov width syn keyword fartObjects box camera cyl extrude intersect light options plane scene shape sphere subtract union +syn keyword fartControl for while if else elsif local syn match fartNumber "\(^\|\W\)\@<=[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\=" syn match fartComment "#.*" +syn match fartIdentifier "\$[a-zA-Z_][a-zA-Z_0-9]*" hi def link fartKeywords Operator hi def link fartObjects Type hi def link fartNumber Number hi def link fartComment Comment +hi def link fartControl Special +hi def link fartIdentifier Identifier let b:current_syntax = "fart"