Bram Moolenaar | 217ad92 | 2005-03-20 22:37:15 +0000 | [diff] [blame] | 1 | " 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 |
| 7 | if exists("b:current_syntax") |
| 8 | finish |
| 9 | endif |
| 10 | |
| 11 | syn match vimspellComment "^#.*" |
| 12 | syn match vimspellError "^-.*" |
| 13 | syn match vimspellRegion "^---$" |
| 14 | syn match vimspellRegion "^\(-\l\l\)\+$" |
| 15 | syn match vimspellError "^[^- #+=>].*" |
| 16 | syn match vimspellError "\s\+$" |
| 17 | |
| 18 | " Define the default highlighting. |
| 19 | " Only when an item doesn't have highlighting yet |
| 20 | if 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 |
| 28 | endif |
| 29 | |
| 30 | let b:current_syntax = "vimspell" |
| 31 | |
| 32 | " vim: ts=8 sw=2 |