neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

esmtprc.vim (938B)


      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 
      6 " quit when a syntax file was already loaded
      7 if exists("b:current_syntax")
      8  finish
      9 endif
     10 
     11 "All options
     12 syntax keyword	esmtprcOptions hostname username password starttls certificate_passphrase preconnect identity mda
     13 
     14 "All keywords
     15 syntax keyword esmtprcIdentifier default enabled disabled required
     16 
     17 "We're trying to be smarer than /."*@.*/ :)
     18 syntax match esmtprcAddress /[a-z0-9_.-]*[a-z0-9]\+@[a-z0-9_.-]*[a-z0-9]\+\.[a-z]\+/
     19 syntax match esmtprcFulladd /[a-z0-9_.-]*[a-z0-9]\+\.[a-z]\+:[0-9]\+/
     20 
     21 "String..
     22 syntax region esmtprcString start=/"/ end=/"/
     23 
     24 
     25 highlight link esmtprcOptions		Label
     26 highlight link esmtprcString 		String
     27 highlight link esmtprcAddress		Type
     28 highlight link esmtprcIdentifier 	Identifier
     29 highlight link esmtprcFulladd		Include
     30 
     31 let b:current_syntax = "esmtprc"