summaryrefslogtreecommitdiff
path: root/runtime/syntax/mma.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/mma.vim')
-rw-r--r--runtime/syntax/mma.vim78
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"