7
|
1 " Vim syntax file
|
|
2 " Language: Jargon File
|
|
3 " Maintainer: <rms@poczta.onet.pl>
|
|
4 " Last Change: 2001 May 26
|
|
5 "
|
|
6 " For version 5.x: Clear all syntax items
|
|
7 " For version 6.x: Quit when a syntax file was already loaded
|
|
8 if version < 600
|
|
9 syntax clear
|
|
10 elseif exists("b:current_syntax")
|
|
11 finish
|
|
12 endif
|
|
13
|
|
14 syn match jargonChaptTitle /:[^:]*:/
|
|
15 syn match jargonEmailAddr /[^<@ ^I]*@[^ ^I>]*/
|
|
16 syn match jargonUrl +\(http\|ftp\)://[^\t )"]*+
|
|
17 syn match jargonMark /{[^}]*}/
|
|
18
|
|
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")
|
|
23 if version < 508
|
|
24 let did_jargon_syntax_inits = 1
|
|
25 command -nargs=+ HiLink hi link <args>
|
|
26 else
|
|
27 command -nargs=+ HiLink hi def link <args>
|
|
28 endif
|
|
29 HiLink jargonChaptTitle Title
|
|
30 HiLink jargonEmailAddr Comment
|
|
31 HiLink jargonUrl Comment
|
|
32 HiLink jargonMark Label
|
|
33 delcommand HiLink
|
|
34 endif
|
|
35
|
|
36 let b:current_syntax = "jargon"
|