home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / syntax / fetchmail.vim < prev    next >
Encoding:
Text File  |  2002-10-24  |  3.2 KB  |  90 lines

  1. " Vim syntax file
  2. " Language:        Fetchmail RC File
  3. " Maintainer:        Nikolai :: lone-star :: Weibull <lone-star@home.se>
  4. " URL:            http://www.pcppopper.org/
  5. " Latest Revision:  2002-10-24
  6.  
  7. if version < 600
  8.     syntax clear
  9. elseif exists("b:current_syntax")
  10.     finish
  11. endif
  12.  
  13. " comments
  14. syn region  fetchmailComment    start="#" end="$"
  15.  
  16. " todo
  17. syn keyword fetchmailTodo    FIXME TODO XXX
  18.  
  19. " numbers
  20. syn match   fetchmailNumber    "\<\d\+\>"
  21.  
  22. " strings
  23. syn region  fetchmailString    start=+"+ skip=+\\\\\|\\"+ end=+"+
  24. syn region  fetchmailString    start=+'+ skip=+\\\\\|\\'+ end=+'+
  25.  
  26. " escape characters in strings
  27. syn match   fetchmailStringEsc    "\\\([ntb]\|0\d*\|x\x\+\)"
  28.  
  29. " server entries
  30. syn region  fetchmailKeyword    transparent matchgroup=fetchmailKeyword start="\<poll\|skip\>" end="\<poll\|skip\>" contains=ALLBUT,fetchmailOptions,fetchmailSet
  31.  
  32. " server options
  33. syn keyword fetchmailServerOpts    contained via proto[col] local[domains] port auth[enticate]
  34. syn keyword fetchmailServerOpts    contained timeout envelope qvirtual aka interface monitor
  35. syn keyword fetchmailServerOpts    contained plugin plugout dns checkalias uidl interval netsec
  36. syn keyword fetchmailServerOpts    contained principal esmtpname esmtppassword
  37. syn match   fetchmailServerOpts    contained "\<no\_s\+\(envelope\|dns\|checkalias\|uidl\)"
  38.  
  39. " user options
  40. syn keyword fetchmailUserOpts    contained user[name] is to pass[word] ssl sslcert sslkey sslproto folder
  41. syn keyword fetchmailUserOpts    contained smtphost fetchdomains smtpaddress smtpname antispam mda bsmtp
  42. syn keyword fetchmailUserOpts    contained preconnect postconnect keep flush fetchall rewrite stripcr
  43. syn keyword fetchmailUserOpts    contained forcecr pass8bits dropstatus dropdelivered mimedecode idle
  44. syn keyword fetchmailUserOpts    contained limit warnings batchlimit fetchlimit expunge tracepolls properties
  45. syn match   fetchmailUserOpts    contained "\<no\_s\+\(keep\|flush\|fetchall\|rewrite\|stripcr\|forcecr\|pass8bits\|dropstatus\|dropdelivered\|mimedecode\|noidle\)"
  46.  
  47. syn keyword fetchmailSpecial    contained here there
  48.  
  49.  
  50. " noise keywords
  51. syn keyword fetchmailNoise    and with has wants options
  52. syn match   fetchmailNoise    "[:;,]"
  53.  
  54. " options
  55. syn keyword fetchmailSet    nextgroup=fetchmailOptions skipwhite skipnl set
  56.  
  57. syn keyword fetchmailOptions    daemon postmaster bouncemail spambounce logfile idfile syslog nosyslog properties
  58. syn match   fetchmailOptions    "\<no\_s\+\(bouncemail\|spambounce\)"
  59.  
  60.  
  61.  
  62. " Define the default highlighting.
  63. " For version 5.7 and earlier: only when not done already
  64. " For version 5.8 and later: only when an item doesn't have highlighting yet
  65. if version >= 508 || !exists("did_fetchmail_syn_inits")
  66.     if version < 508
  67.     let did_fetchmail_syn_inits = 1
  68.     command -nargs=+ HiLink hi link <args>
  69.     else
  70.     command -nargs=+ HiLink hi def link <args>
  71.     endif
  72.  
  73.     HiLink fetchmailComment    Comment
  74.     HiLink fetchmailTodo    Todo
  75.     HiLink fetchmailNumber    Number
  76.     HiLink fetchmailString    String
  77.     HiLink fetchmailStringEsc    SpecialChar
  78.     HiLink fetchmailKeyword    Keyword
  79.     HiLink fetchmailServerOpts    Identifier
  80.     HiLink fetchmailUserOpts    Identifier
  81.     HiLink fetchmailSpecial    Special
  82.     HiLink fetchmailSet        Keyword
  83.     HiLink fetchmailOptions    Identifier
  84.     delcommand HiLink
  85. endif
  86.  
  87. let b:current_syntax = "fetchmail"
  88.  
  89. " vim: set sts=4 sw=4:
  90.