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