" Vim syntax file " Maintainer : Nikolai 'pcp' Weibull " URL : http://www.pcppopper.org/ " Revised on : Mon, 27 Aug 2001 21:49:33 +0200 " Language : lftp Configuration file if version < 600 syntax clear elseif exists("b:current_syntax") finish endif " Set iskeyword since we need `-' (and potentially others) in keywords. " For version 5.x: Set it globally " For version 6.x: Set it locally if version >= 600 command -nargs=1 SetIsk setlocal iskeyword= else command -nargs=1 SetIsk set iskeyword= endif SetIsk 48-57,97-122,- delcommand SetIsk " comments syn region lftpComment matchgroup=lftpComment start="#" end="$" contains=lftpTodo " todo syn keyword lftpTodo contained TODO FIXME " strings syn region lftpString contained display oneline start=+"+ skip=+\\"+ end=+"+ " numbers syn match lftpNumber contained display "\<\d\+\(\.\d\+\)\=\>" " booleans and other things syn keyword lftpBoolean contained yes no on off true false " intervals syn keyword lftpInterval contained infinity inf never forever syn match lftpInterval contained "\<\(\d\+\(\.\d\+\)\=[dhms]\)\+\>" " commands syn keyword lftpKeywords alias anon at bookmark cache cat cd chmod close syn keyword lftpKeywords command debug echo exit find get glob help jobs syn keyword lftpKeywords kill lcd lpwd ls mget fg mirror more mput mrm syn keyword lftpKeywords mv nlist open pget put pwd queue quote reget less syn keyword lftpKeywords rels renlist repeat reput rm rmdir scache site syn keyword lftpKeywords sleep source suspend user version wait zcat zmore " settings syn region lftpSet matchgroup=lftpKeywords start="set" end=";" end="$" contains=lftpString,lftpNumber,lftpBoolean,lftpInterval,lftpSettings " not quite right since options can be given like save-pa or bmk:save " but hopefully people type out the whole option when writing rc's syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings contained "\(\" syn match lftpSettings 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_lftp_syn_inits") if version < 508 let did_lftp_syn_inits = 1 command -nargs=+ HiLink hi link else command -nargs=+ HiLink hi def link endif HiLink lftpComment Comment HiLink lftpTodo Todo HiLink lftpString String HiLink lftpNumber Number HiLink lftpBoolean Number HiLink lftpInterval Number HiLink lftpKeywords Keyword HiLink lftpSettings Type delcommand HiLink endif let b:current_syntax = "lftp" " vim: set sw=4 sts=4: .