2 " Language: Jargon File
3 " Maintainer: <rms@poczta.onet.pl>
4 " Last Change: 2001 May 26
6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded
10 elseif exists("b:current_syntax")
14 syn match jargonChaptTitle /:[^:]*:/
15 syn match jargonEmailAddr /[^<@ ^I]*@[^ ^I>]*/
16 syn match jargonUrl +\(http\|ftp\)://[^\t )"]*+
17 syn match jargonMark /{[^}]*}/
19 " Define the default highlighting.
20 " For version 5.7 and earlier: only when not done already
21 " For version 5.8 and later: only when an item doesn't have highlighting yet
22 if version >= 508 || !exists("did_jargon_syntax_inits")
24 let did_jargon_syntax_inits = 1
25 command -nargs=+ HiLink hi link <args>
27 command -nargs=+ HiLink hi def link <args>
29 HiLink jargonChaptTitle Title
30 HiLink jargonEmailAddr Comment
31 HiLink jargonUrl Comment
32 HiLink jargonMark Label
36 let b:current_syntax = "jargon"