From a53409b564458f7a94c8fcd0725d1953dee58dce Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 28 Apr 2017 21:06:44 +0200 Subject: vim-patch:89bcfda6834a Updated runtime files. Remove version checks for Vim older than 6.0. https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 --- runtime/syntax/strace.vim | 50 +++++++++++++++++++---------------------------- 1 file changed, 20 insertions(+), 30 deletions(-) (limited to 'runtime/syntax/strace.vim') diff --git a/runtime/syntax/strace.vim b/runtime/syntax/strace.vim index 0f686fd808..45b70071a0 100644 --- a/runtime/syntax/strace.vim +++ b/runtime/syntax/strace.vim @@ -5,12 +5,9 @@ " Last Change: 2015-01-16 " 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 syn case match @@ -35,31 +32,24 @@ syn match straceOperator "[-+=*/!%&|:,]" syn region straceComment start="/\*" end="\*/" oneline " Define the default highlighting -if version >= 508 || !exists("did_strace_syntax_inits") - if version < 508 - let did_strace_syntax_inits = 1 - command -nargs=+ HiLink hi link - else - command -nargs=+ HiLink hi def link - endif +command -nargs=+ HiLink hi def link - HiLink straceComment Comment - HiLink straceVerbosed Comment - HiLink stracePID PreProc - HiLink straceNumber Number - HiLink straceNumberRHS Type - HiLink straceOtherRHS Type - HiLink straceString String - HiLink straceConstant Function - HiLink straceEquals Type - HiLink straceSysCallEmbed straceSysCall - HiLink straceSysCall Statement - HiLink straceParenthesis Statement - HiLink straceOperator Normal - HiLink straceSpecialChar Special - HiLink straceOtherPID PreProc +HiLink straceComment Comment +HiLink straceVerbosed Comment +HiLink stracePID PreProc +HiLink straceNumber Number +HiLink straceNumberRHS Type +HiLink straceOtherRHS Type +HiLink straceString String +HiLink straceConstant Function +HiLink straceEquals Type +HiLink straceSysCallEmbed straceSysCall +HiLink straceSysCall Statement +HiLink straceParenthesis Statement +HiLink straceOperator Normal +HiLink straceSpecialChar Special +HiLink straceOtherPID PreProc - delcommand HiLink -endif +delcommand HiLink let b:current_syntax = "strace" -- cgit From 86b596dc7a49f1b148ef82a356b972b93ed0f6d4 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 28 Apr 2017 21:14:34 +0200 Subject: vim-patch:f37506f60f87 Updated runtime files. Remove HiLink commands. https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c --- runtime/syntax/strace.vim | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'runtime/syntax/strace.vim') diff --git a/runtime/syntax/strace.vim b/runtime/syntax/strace.vim index 45b70071a0..206c58919e 100644 --- a/runtime/syntax/strace.vim +++ b/runtime/syntax/strace.vim @@ -32,24 +32,22 @@ syn match straceOperator "[-+=*/!%&|:,]" syn region straceComment start="/\*" end="\*/" oneline " Define the default highlighting -command -nargs=+ HiLink hi def link -HiLink straceComment Comment -HiLink straceVerbosed Comment -HiLink stracePID PreProc -HiLink straceNumber Number -HiLink straceNumberRHS Type -HiLink straceOtherRHS Type -HiLink straceString String -HiLink straceConstant Function -HiLink straceEquals Type -HiLink straceSysCallEmbed straceSysCall -HiLink straceSysCall Statement -HiLink straceParenthesis Statement -HiLink straceOperator Normal -HiLink straceSpecialChar Special -HiLink straceOtherPID PreProc +hi def link straceComment Comment +hi def link straceVerbosed Comment +hi def link stracePID PreProc +hi def link straceNumber Number +hi def link straceNumberRHS Type +hi def link straceOtherRHS Type +hi def link straceString String +hi def link straceConstant Function +hi def link straceEquals Type +hi def link straceSysCallEmbed straceSysCall +hi def link straceSysCall Statement +hi def link straceParenthesis Statement +hi def link straceOperator Normal +hi def link straceSpecialChar Special +hi def link straceOtherPID PreProc -delcommand HiLink let b:current_syntax = "strace" -- cgit