mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
33 lines
782 B
VimL
33 lines
782 B
VimL
|
" Vim syntax file
|
||
|
" Language: Vim spell file
|
||
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||
|
" Last Change: 2005 Mar 20
|
||
|
|
||
|
" Quit when a syntax file was already loaded
|
||
|
if exists("b:current_syntax")
|
||
|
finish
|
||
|
endif
|
||
|
|
||
|
syn match vimspellComment "^#.*"
|
||
|
syn match vimspellError "^-.*"
|
||
|
syn match vimspellRegion "^---$"
|
||
|
syn match vimspellRegion "^\(-\l\l\)\+$"
|
||
|
syn match vimspellError "^[^- #+=>].*"
|
||
|
syn match vimspellError "\s\+$"
|
||
|
|
||
|
" 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
|