diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-28 21:06:44 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-28 21:13:55 +0200 |
| commit | a53409b564458f7a94c8fcd0725d1953dee58dce (patch) | |
| tree | 27bf0fa5f804d33455b66814c62a0f3358809d1b /runtime/syntax/lilo.vim | |
| parent | f09651ea78b833d6d05db89c41df603b741ab000 (diff) | |
| download | rneovim-a53409b564458f7a94c8fcd0725d1953dee58dce.tar.gz rneovim-a53409b564458f7a94c8fcd0725d1953dee58dce.tar.bz2 rneovim-a53409b564458f7a94c8fcd0725d1953dee58dce.zip | |
vim-patch:89bcfda6834a
Updated runtime files. Remove version checks for Vim older than 6.0.
https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Diffstat (limited to 'runtime/syntax/lilo.vim')
| -rw-r--r-- | runtime/syntax/lilo.vim | 130 |
1 files changed, 57 insertions, 73 deletions
diff --git a/runtime/syntax/lilo.vim b/runtime/syntax/lilo.vim index 3e9459267b..f58e34061c 100644 --- a/runtime/syntax/lilo.vim +++ b/runtime/syntax/lilo.vim @@ -5,21 +5,12 @@ " Last Change: 2010-02-03 " Setup -if version >= 600 - if exists("b:current_syntax") - finish - endif -else - syntax clear +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish endif -if version >= 600 - command -nargs=1 SetIsk setlocal iskeyword=<args> -else - command -nargs=1 SetIsk set iskeyword=<args> -endif -SetIsk @,48-57,.,-,_ -delcommand SetIsk +setlocal iskeyword=@,48-57,.,-,_ syn case ignore @@ -128,65 +119,58 @@ syn match liloDecNumberPListComment "#.*$" contained nextgroup=liloDecNumberPLis syn match liloAnythingComment "#.*$" contained nextgroup=liloAnything,liloAnythingComment,liloError skipwhite skipempty " Define the default highlighting -if version >= 508 || !exists("did_lilo_syntax_inits") - if version < 508 - let did_lilo_syntax_inits = 1 - command -nargs=+ HiLink hi link <args> - else - command -nargs=+ HiLink hi def link <args> - endif - - HiLink liloEqPath liloEquals - HiLink liloEqWord liloEquals - HiLink liloEqVga liloEquals - HiLink liloEqDecNumber liloEquals - HiLink liloEqHexNumber liloEquals - HiLink liloEqNumber liloEquals - HiLink liloEqString liloEquals - HiLink liloEqAnything liloEquals - HiLink liloEquals Special - - HiLink liloError Error - - HiLink liloEqPathComment liloComment - HiLink liloEqVgaComment liloComment - HiLink liloEqDecNumberComment liloComment - HiLink liloEqHexNumberComment liloComment - HiLink liloEqStringComment liloComment - HiLink liloEqAnythingComment liloComment - HiLink liloPathComment liloComment - HiLink liloVgaComment liloComment - HiLink liloDecNumberComment liloComment - HiLink liloHexNumberComment liloComment - HiLink liloNumberComment liloComment - HiLink liloStringComment liloComment - HiLink liloAnythingComment liloComment - HiLink liloComment Comment - - HiLink liloDiskOpt liloOption - HiLink liloKernelOpt liloOption - HiLink liloImageOpt liloOption - HiLink liloOption Keyword - - HiLink liloDecNumber liloNumber - HiLink liloHexNumber liloNumber - HiLink liloDecNumberP liloNumber - HiLink liloNumber Number - HiLink liloString String - HiLink liloPath Constant - - HiLink liloSpecial Special - HiLink liloLabel Title - HiLink liloDecNumberList Special - HiLink liloDecNumberPList Special - HiLink liloAnything Normal - HiLink liloEnviron Identifier - HiLink liloVgaKeyword Identifier - HiLink liloImage Type - HiLink liloChRules Preproc - HiLink liloDisk Preproc - - delcommand HiLink -endif +command -nargs=+ HiLink hi def link <args> + +HiLink liloEqPath liloEquals +HiLink liloEqWord liloEquals +HiLink liloEqVga liloEquals +HiLink liloEqDecNumber liloEquals +HiLink liloEqHexNumber liloEquals +HiLink liloEqNumber liloEquals +HiLink liloEqString liloEquals +HiLink liloEqAnything liloEquals +HiLink liloEquals Special + +HiLink liloError Error + +HiLink liloEqPathComment liloComment +HiLink liloEqVgaComment liloComment +HiLink liloEqDecNumberComment liloComment +HiLink liloEqHexNumberComment liloComment +HiLink liloEqStringComment liloComment +HiLink liloEqAnythingComment liloComment +HiLink liloPathComment liloComment +HiLink liloVgaComment liloComment +HiLink liloDecNumberComment liloComment +HiLink liloHexNumberComment liloComment +HiLink liloNumberComment liloComment +HiLink liloStringComment liloComment +HiLink liloAnythingComment liloComment +HiLink liloComment Comment + +HiLink liloDiskOpt liloOption +HiLink liloKernelOpt liloOption +HiLink liloImageOpt liloOption +HiLink liloOption Keyword + +HiLink liloDecNumber liloNumber +HiLink liloHexNumber liloNumber +HiLink liloDecNumberP liloNumber +HiLink liloNumber Number +HiLink liloString String +HiLink liloPath Constant + +HiLink liloSpecial Special +HiLink liloLabel Title +HiLink liloDecNumberList Special +HiLink liloDecNumberPList Special +HiLink liloAnything Normal +HiLink liloEnviron Identifier +HiLink liloVgaKeyword Identifier +HiLink liloImage Type +HiLink liloChRules Preproc +HiLink liloDisk Preproc + +delcommand HiLink let b:current_syntax = "lilo" |