esmtprc.vim 938 B

1234567891011121314151617181920212223242526272829303132
  1. " Vim syntax file
  2. " Language: Esmtp setup file (based on esmtp 0.5.0)
  3. " Maintainer: Kornel Kielczewski <kornel@gazeta.pl>
  4. " Last Change: 16 Feb 2005
  5. " quit when a syntax file was already loaded
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. "All options
  10. syntax keyword esmtprcOptions hostname username password starttls certificate_passphrase preconnect identity mda
  11. "All keywords
  12. syntax keyword esmtprcIdentifier default enabled disabled required
  13. "We're trying to be smarer than /."*@.*/ :)
  14. syntax match esmtprcAddress /[a-z0-9_.-]*[a-z0-9]\+@[a-z0-9_.-]*[a-z0-9]\+\.[a-z]\+/
  15. syntax match esmtprcFulladd /[a-z0-9_.-]*[a-z0-9]\+\.[a-z]\+:[0-9]\+/
  16. "String..
  17. syntax region esmtprcString start=/"/ end=/"/
  18. highlight link esmtprcOptions Label
  19. highlight link esmtprcString String
  20. highlight link esmtprcAddress Type
  21. highlight link esmtprcIdentifier Identifier
  22. highlight link esmtprcFulladd Include
  23. let b:current_syntax = "esmtprc"