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/asm68k.vim | 113 +++++++++++++++++++++------------------------- 1 file changed, 51 insertions(+), 62 deletions(-) (limited to 'runtime/syntax/asm68k.vim') diff --git a/runtime/syntax/asm68k.vim b/runtime/syntax/asm68k.vim index cd23517cad..ace56c854e 100644 --- a/runtime/syntax/asm68k.vim +++ b/runtime/syntax/asm68k.vim @@ -8,11 +8,8 @@ " Feel free to contribute... " -" For version 5.x: Clear all syntax items -" For version 6.x: Quit when a syntax file was already loaded -if version < 600 - syntax clear -elseif exists("b:current_syntax") +" quit when a syntax file was already loaded +if exists("b:current_syntax") finish endif @@ -328,63 +325,55 @@ syn match asm68kDirective "\= 508 || !exists("did_asm68k_syntax_inits") - if version < 508 - let did_asm68k_syntax_inits = 1 - command -nargs=+ HiLink hi link - else - command -nargs=+ HiLink hi def link - endif - - " The default methods for highlighting. Can be overridden later - " Comment Constant Error Identifier PreProc Special Statement Todo Type - " - " Constant Boolean Character Number String - " Identifier Function - " PreProc Define Include Macro PreCondit - " Special Debug Delimiter SpecialChar SpecialComment Tag - " Statement Conditional Exception Keyword Label Operator Repeat - " Type StorageClass Structure Typedef - - HiLink asm68kComment Comment - HiLink asm68kTodo Todo - - HiLink hexNumber Number " Constant - HiLink octNumber Number " Constant - HiLink binNumber Number " Constant - HiLink decNumber Number " Constant - HiLink floatNumber Number " Constant - HiLink floatExponent Number " Constant - HiLink floatE SpecialChar " Statement - "HiLink floatE Number " Constant - - HiLink asm68kImmediate SpecialChar " Statement - "HiLink asm68kSymbol Constant - - HiLink asm68kString String " Constant - HiLink asm68kCharError Error - HiLink asm68kStringError Error - - HiLink asm68kReg Identifier - HiLink asm68kOperator Identifier - - HiLink asm68kInclude Include " PreProc - HiLink asm68kMacro Macro " PreProc - HiLink asm68kMacroParam Keyword " Statement - - HiLink asm68kDirective Special - HiLink asm68kPreCond Special - - - HiLink asm68kOpcode Statement - HiLink asm68kCond Conditional " Statement - HiLink asm68kRepeat Repeat " Statement - - HiLink asm68kLabel Type - delcommand HiLink -endif +" Only when an item doesn't have highlighting yet +command -nargs=+ HiLink hi def link + +" The default methods for highlighting. Can be overridden later +" Comment Constant Error Identifier PreProc Special Statement Todo Type +" +" Constant Boolean Character Number String +" Identifier Function +" PreProc Define Include Macro PreCondit +" Special Debug Delimiter SpecialChar SpecialComment Tag +" Statement Conditional Exception Keyword Label Operator Repeat +" Type StorageClass Structure Typedef + +HiLink asm68kComment Comment +HiLink asm68kTodo Todo + +HiLink hexNumber Number " Constant +HiLink octNumber Number " Constant +HiLink binNumber Number " Constant +HiLink decNumber Number " Constant +HiLink floatNumber Number " Constant +HiLink floatExponent Number " Constant +HiLink floatE SpecialChar " Statement +"HiLink floatE Number " Constant + +HiLink asm68kImmediate SpecialChar " Statement +"HiLink asm68kSymbol Constant + +HiLink asm68kString String " Constant +HiLink asm68kCharError Error +HiLink asm68kStringError Error + +HiLink asm68kReg Identifier +HiLink asm68kOperator Identifier + +HiLink asm68kInclude Include " PreProc +HiLink asm68kMacro Macro " PreProc +HiLink asm68kMacroParam Keyword " Statement + +HiLink asm68kDirective Special +HiLink asm68kPreCond Special + + +HiLink asm68kOpcode Statement +HiLink asm68kCond Conditional " Statement +HiLink asm68kRepeat Repeat " Statement + +HiLink asm68kLabel Type +delcommand HiLink let b:current_syntax = "asm68k" -- 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/asm68k.vim | 54 +++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 28 deletions(-) (limited to 'runtime/syntax/asm68k.vim') diff --git a/runtime/syntax/asm68k.vim b/runtime/syntax/asm68k.vim index ace56c854e..1607507909 100644 --- a/runtime/syntax/asm68k.vim +++ b/runtime/syntax/asm68k.vim @@ -326,7 +326,6 @@ syn case match " Define the default highlighting. " Only when an item doesn't have highlighting yet -command -nargs=+ HiLink hi def link " The default methods for highlighting. Can be overridden later " Comment Constant Error Identifier PreProc Special Statement Todo Type @@ -338,42 +337,41 @@ command -nargs=+ HiLink hi def link " Statement Conditional Exception Keyword Label Operator Repeat " Type StorageClass Structure Typedef -HiLink asm68kComment Comment -HiLink asm68kTodo Todo +hi def link asm68kComment Comment +hi def link asm68kTodo Todo -HiLink hexNumber Number " Constant -HiLink octNumber Number " Constant -HiLink binNumber Number " Constant -HiLink decNumber Number " Constant -HiLink floatNumber Number " Constant -HiLink floatExponent Number " Constant -HiLink floatE SpecialChar " Statement -"HiLink floatE Number " Constant +hi def link hexNumber Number " Constant +hi def link octNumber Number " Constant +hi def link binNumber Number " Constant +hi def link decNumber Number " Constant +hi def link floatNumber Number " Constant +hi def link floatExponent Number " Constant +hi def link floatE SpecialChar " Statement +"hi def link floatE Number " Constant -HiLink asm68kImmediate SpecialChar " Statement -"HiLink asm68kSymbol Constant +hi def link asm68kImmediate SpecialChar " Statement +"hi def link asm68kSymbol Constant -HiLink asm68kString String " Constant -HiLink asm68kCharError Error -HiLink asm68kStringError Error +hi def link asm68kString String " Constant +hi def link asm68kCharError Error +hi def link asm68kStringError Error -HiLink asm68kReg Identifier -HiLink asm68kOperator Identifier +hi def link asm68kReg Identifier +hi def link asm68kOperator Identifier -HiLink asm68kInclude Include " PreProc -HiLink asm68kMacro Macro " PreProc -HiLink asm68kMacroParam Keyword " Statement +hi def link asm68kInclude Include " PreProc +hi def link asm68kMacro Macro " PreProc +hi def link asm68kMacroParam Keyword " Statement -HiLink asm68kDirective Special -HiLink asm68kPreCond Special +hi def link asm68kDirective Special +hi def link asm68kPreCond Special -HiLink asm68kOpcode Statement -HiLink asm68kCond Conditional " Statement -HiLink asm68kRepeat Repeat " Statement +hi def link asm68kOpcode Statement +hi def link asm68kCond Conditional " Statement +hi def link asm68kRepeat Repeat " Statement -HiLink asm68kLabel Type -delcommand HiLink +hi def link asm68kLabel Type let b:current_syntax = "asm68k" -- cgit