0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/syntax/vimspell.vim

35 lines
848 B
VimL
Raw Normal View History

2005-03-20 22:37:15 +00:00
" Vim syntax file
" Language: Vim spell file
" Maintainer: Bram Moolenaar <Bram@vim.org>
2005-03-25 21:53:48 +00:00
" Last Change: 2005 Mar 24
2005-03-20 22:37:15 +00:00
" Quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
2005-03-22 23:03:44 +00:00
syn match vimspellError ".*"
2005-03-20 22:37:15 +00:00
syn match vimspellRegion "^---$"
syn match vimspellRegion "^\(-\l\l\)\+$"
2005-03-25 21:53:48 +00:00
syn match vimspellOK "^!\=[>+]\=[[:alpha:]].*"
2005-03-22 23:03:44 +00:00
syn match vimspellOK "^!\=+\S*"
2005-03-20 22:37:15 +00:00
syn match vimspellError "\s\+$"
2005-03-22 23:03:44 +00:00
syn match vimspellOK "^$"
syn match vimspellComment "^#.*"
2005-03-20 22:37:15 +00:00
" Define the default highlighting.
" Only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_diff_syntax_inits")
command -nargs=+ HiLink hi def link <args>
HiLink vimspellComment Comment
HiLink vimspellRegion DiffAdd
HiLink vimspellError Error
delcommand HiLink
endif
let b:current_syntax = "vimspell"
" vim: ts=8 sw=2