.vimrc0000644000175000017500000000002611164254054012403 0ustar jbarrattjbarrattfiletype on syntax on .vim/0000755000175000017500000000000011164464300012132 5ustar jbarrattjbarratt.vim/ftdetect/0000755000175000017500000000000011164472312013736 5ustar jbarrattjbarratt.vim/ftdetect/puppet.vim0000644000175000017500000000021611164472311015766 0ustar jbarrattjbarratt" detect puppet filetype au BufRead,BufNewFile *.pp set filetype=puppet au BufRead,BufNewFile *.pp compiler puppet .vim/syntax/0000755000175000017500000000000011164250527013464 5ustar jbarrattjbarratt.vim/syntax/puppet.vim0000644000175000017500000000672411164250527015527 0ustar jbarrattjbarratt" puppet syntax file " Filename: puppet.vim " Language: puppet configuration file " Maintainer: Luke Kanies " URL: " Last Change: " Version: " " Copied from the cfengine, ruby, and perl syntax files " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded if version < 600 syntax clear elseif exists("b:current_syntax") finish endif syn region puppetDefine start="^\s*\(class\|define\|node\)" end="{" contains=puppetDefType,puppetDefName,puppetDefArguments syn keyword puppetDefType class define site node inherits contained syn keyword puppetInherits inherits contained syn region puppetDefArguments start="(" end=")" contains=puppetArgument syn match puppetArgument "\w\+" contained syn match puppetArgument "\$\w\+" contained syn match puppetArgument "'[^']+'" contained syn match puppetArgument '"[^"]+"' contained syn match puppetDefName "\w\+" contained syn match puppetInstance "\w\+\s*{" contains=puppetTypeBrace,puppetTypeName,puppetTypeDefault syn match puppetTypeBrace "{" contained syn match puppetTypeName "[a-z]\w*" contained syn match puppetTypeDefault "[A-Z]\w*" contained syn match puppetParam "\w\+\s*=>" contains=puppetTypeRArrow,puppetParamName syn match puppetParamRArrow "=>" contained syn match puppetParamName "\w\+" contained syn match puppetVariable "$\w\+" syn match puppetVariable "${\w\+}" syn match puppetParen "(" syn match puppetParen ")" syn match puppetBrace "{" syn match puppetBrace "}" syn region puppetString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=puppetVariable syn keyword puppetBoolean true false syn keyword puppetKeyword import inherits include syn keyword puppetControl case default " comments last overriding everything else syn match puppetComment "\s*#.*$" contains=puppetTodo syn region puppetComment start="/\*" end="\*/" contains=puppetTodo extend syn keyword puppetTodo TODO NOTE FIXME XXX contained " Define the default highlighting. " For version 5.7 and earlier: only when not done already " For version 5.8 and later: only when an item doesn't have highlighting yet if version >= 508 || !exists("did_puppet_syn_inits") if version < 508 let did_puppet_syn_inits = 1 command -nargs=+ HiLink hi link else command -nargs=+ HiLink hi def link endif HiLink puppetVariable Identifier HiLink puppetBoolean Boolean HiLink puppetType Identifier HiLink puppetDefault Identifier HiLink puppetKeyword Define HiLink puppetTypeDefs Define HiLink puppetComment Comment HiLink puppetString String HiLink puppetTodo Todo " HiLink puppetBrace Delimiter " HiLink puppetTypeBrace Delimiter " HiLink puppetParen Delimiter HiLink puppetDelimiter Delimiter HiLink puppetControl Statement HiLink puppetDefType Define HiLink puppetDefName Type HiLink puppetTypeName Statement HiLink puppetTypeDefault Type HiLink puppetParamName Identifier HiLink puppetArgument Identifier delcommand HiLink endif let b:current_syntax = "puppet" .vim/compiler/0000755000175000017500000000000011164464257013757 5ustar jbarrattjbarratt.vim/compiler/puppet.vim0000644000175000017500000000161611164464253016011 0ustar jbarrattjbarratt" Vim compiler file " Compiler: Puppet syntax checks (puppet --debug --noop) v1.0 " Maintainer: Joshua Barratt " Last Change: 2009 Apr 1 " Changelog: " " 1.0: initial version " if exists("current_compiler") finish endif let current_compiler = "puppet" " there is no pipes under windows, vi use temp file " and as perl outputs to stderr this have to be handled corectly if has("win32") setlocal shellpipe=1>&2\ 2> endif setlocal makeprg=puppet\ --debug\ --noop\ % " Sample errors: " Perl: Type of arg 1 to push must be array (not hash element) at NFrame.pm line 129, near ");" " setlocal errorformat=%m\ at\ %f\ line\ %l%.%#, "\%-G%.%# " ignore any lines that didn't match one of the patterns above " Puppet: Could not parse for environment production: Syntax error at '}' at /home/jbarratt/home_resource.pp:14 setlocal errorformat=%m\ at\ %f:%l