diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-30 23:26:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-30 23:26:57 +0200 |
commit | 89bcfda6834aba724d12554a34b9ed49f5789fd5 (patch) | |
tree | 2ffddcadaae9d061e38e17a09b2635ec199eb1dd /runtime/syntax/mma.vim | |
parent | 4792255eff03760dca0fd014616532e6d47db364 (diff) | |
download | vim-89bcfda6834aba724d12554a34b9ed49f5789fd5.zip |
Updated runtime files. Remove version checks for Vim older than 6.0.
Diffstat (limited to 'runtime/syntax/mma.vim')
-rw-r--r-- | runtime/syntax/mma.vim | 78 |
1 files changed, 35 insertions, 43 deletions
diff --git a/runtime/syntax/mma.vim b/runtime/syntax/mma.vim index c63beb119..9bdb7019b 100644 --- a/runtime/syntax/mma.vim +++ b/runtime/syntax/mma.vim @@ -35,9 +35,8 @@ " fix nesting " finish populating popular symbols -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 @@ -283,47 +282,40 @@ syntax sync fromstart "set foldnestmax=1 "set foldminlines=15 -if version >= 508 || !exists("did_mma_syn_inits") - if version < 508 - let did_mma_syn_inits = 1 - command -nargs=+ HiLink hi link <args> - else - command -nargs=+ HiLink hi def link <args> - endif - - " NOTE - the following links are not guaranteed to - " look good under all colorschemes. You might need to - " :so $VIMRUNTIME/syntax/hitest.vim and tweak these to - " look good in yours - - - HiLink mmaComment Comment - HiLink mmaCommentStar Comment - HiLink mmaFunctionComment Comment - HiLink mmaLooseQuote Comment - HiLink mmaGenericFunction Function - HiLink mmaVariable Identifier +command -nargs=+ HiLink hi def link <args> + +" NOTE - the following links are not guaranteed to +" look good under all colorschemes. You might need to +" :so $VIMRUNTIME/syntax/hitest.vim and tweak these to +" look good in yours + + +HiLink mmaComment Comment +HiLink mmaCommentStar Comment +HiLink mmaFunctionComment Comment +HiLink mmaLooseQuote Comment +HiLink mmaGenericFunction Function +HiLink mmaVariable Identifier " HiLink mmaSymbol Identifier - HiLink mmaOperator Operator - HiLink mmaPatternOp Operator - HiLink mmaPureFunction Operator - HiLink mmaString String - HiLink mmaCommentString String - HiLink mmaUnicode String - HiLink mmaMessage Type - HiLink mmaNumber Type - HiLink mmaPattern Type - HiLink mmaError Error - HiLink mmaFixme Error - HiLink mmaPatternError Error - HiLink mmaTodo Todo - HiLink mmaemPHAsis Special - HiLink mmaFunctionTitle Special - HiLink mmaMessageType Special - HiLink mmaItem Preproc - - delcommand HiLink -endif +HiLink mmaOperator Operator +HiLink mmaPatternOp Operator +HiLink mmaPureFunction Operator +HiLink mmaString String +HiLink mmaCommentString String +HiLink mmaUnicode String +HiLink mmaMessage Type +HiLink mmaNumber Type +HiLink mmaPattern Type +HiLink mmaError Error +HiLink mmaFixme Error +HiLink mmaPatternError Error +HiLink mmaTodo Todo +HiLink mmaemPHAsis Special +HiLink mmaFunctionTitle Special +HiLink mmaMessageType Special +HiLink mmaItem Preproc + +delcommand HiLink let b:current_syntax = "mma" |