221
|
1 " Vim syntax file
|
|
2 " Language: Vim spell file
|
|
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
|
227
|
4 " Last Change: 2005 Mar 22
|
221
|
5
|
|
6 " Quit when a syntax file was already loaded
|
|
7 if exists("b:current_syntax")
|
|
8 finish
|
|
9 endif
|
|
10
|
227
|
11 syn match vimspellError ".*"
|
221
|
12 syn match vimspellRegion "^---$"
|
|
13 syn match vimspellRegion "^\(-\l\l\)\+$"
|
227
|
14 syn match vimspellOK "^!\=[>+]\=[[:alpha:]]\S*"
|
|
15 syn match vimspellOK "^!\=+\S*"
|
221
|
16 syn match vimspellError "\s\+$"
|
227
|
17 syn match vimspellOK "^$"
|
|
18 syn match vimspellComment "^#.*"
|
221
|
19
|
|
20 " Define the default highlighting.
|
|
21 " Only when an item doesn't have highlighting yet
|
|
22 if version >= 508 || !exists("did_diff_syntax_inits")
|
|
23 command -nargs=+ HiLink hi def link <args>
|
|
24
|
|
25 HiLink vimspellComment Comment
|
|
26 HiLink vimspellRegion DiffAdd
|
|
27 HiLink vimspellError Error
|
|
28
|
|
29 delcommand HiLink
|
|
30 endif
|
|
31
|
|
32 let b:current_syntax = "vimspell"
|
|
33
|
|
34 " vim: ts=8 sw=2
|