"Fossies" - the Fresh Open Source Software Archive

Member "websec-1.9.0/websec.vim" (14 Mar 2005, 1704 Bytes) of package /linux/www/old/websec-1.9.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) vimscript source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 " Vim syntax file
    2 " Language:     Web Secretary url.list & ignore.list
    3 " Maintainer:   Baruch Even <websec@ev-en.org>
    4 " URL:          With websec itself
    5 " Last Change:  Tue May 13 07:41:52 IDT 2003
    6 
    7 " Place this file as ~/.vim/syntax/websec.vim
    8 "
    9 " Then add the following lines to ~/.vimrc
   10 "
   11 " au BufNewFile,BufRead  url.list,ignore.list setf svn
   12 
   13 " For version 5.x: Clear all syntax items
   14 " For version 6.x: Quit when a syntax file was already loaded
   15 if version < 600
   16     syntax clear
   17 elseif exists("b:current_syntax")
   18     finish
   19 endif
   20 
   21 syn case ignore
   22 syn keyword urllistCommand  AsciiMarker Auth DateFMT Diff Digest
   23 syn keyword urllistCommand  Email EmailError EmailLink Hicolor Ignore IgnoreURL
   24 syn keyword urllistCommand  MailFrom Name Prefix Program ProgramDigest
   25 syn keyword urllistCommand  Proxy ProxyAuth RandomWait Tmax Tmin
   26 syn keyword urllistCommand  URL UserAgent
   27 
   28 syn region  urllistString   start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
   29 syn region  urllistString   start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline
   30 
   31 syn region  urllistEND    start="^\s*__END__" skip="." end="." contains=perlPOD
   32 
   33 syn match   urllistComment  "^#.*"
   34 syn match   urllistComment  "\s#.*"ms=s+1
   35 
   36 " Define the default highlighting.
   37 " For version 5.7 and earlier: only when not done already
   38 " For version 5.8 and later: only when an item doesn't have highlighting yet
   39 if version >= 508 || !exists("did_svn_syn_inits")
   40     if version < 508
   41         let did_svn_syn_inits = 1
   42         command -nargs=+ HiLink hi link <args>
   43     else
   44         command -nargs=+ HiLink hi def link <args>
   45     endif
   46 
   47     HiLink urllistComment   Comment
   48     HiLink urllistEND       Comment
   49     HiLink urllistString    String
   50     HiLink urllistCommand   Statement
   51 
   52     delcommand HiLink
   53 endif
   54 
   55 let b:current_syntax = "websec"