aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/ocaml.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-28 21:06:44 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-28 21:13:55 +0200
commita53409b564458f7a94c8fcd0725d1953dee58dce (patch)
tree27bf0fa5f804d33455b66814c62a0f3358809d1b /runtime/syntax/ocaml.vim
parentf09651ea78b833d6d05db89c41df603b741ab000 (diff)
downloadrneovim-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/ocaml.vim')
-rw-r--r--runtime/syntax/ocaml.vim143
1 files changed, 66 insertions, 77 deletions
diff --git a/runtime/syntax/ocaml.vim b/runtime/syntax/ocaml.vim
index 24116f0e02..1884c31823 100644
--- a/runtime/syntax/ocaml.vim
+++ b/runtime/syntax/ocaml.vim
@@ -13,11 +13,8 @@
" can be distinguished from begin/end, which is used for indentation,
" and folding. (David Baelde)
-" 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") && b:current_syntax == "ocaml"
+" quit when a syntax file was already loaded
+if exists("b:current_syntax") && b:current_syntax == "ocaml"
finish
endif
@@ -253,78 +250,70 @@ syn sync match ocamlSigSync grouphere ocamlSig "\<sig\>"
syn sync match ocamlSigSync groupthere ocamlSig "\<end\>"
" Define the default highlighting.
-" For version 5.7 and earlier: only when not done already
-" For version 5.8 and later: only when an item doesn't have highlighting yet
-if version >= 508 || !exists("did_ocaml_syntax_inits")
- if version < 508
- let did_ocaml_syntax_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink ocamlBraceErr Error
- HiLink ocamlBrackErr Error
- HiLink ocamlParenErr Error
- HiLink ocamlArrErr Error
-
- HiLink ocamlCommentErr Error
-
- HiLink ocamlCountErr Error
- HiLink ocamlDoErr Error
- HiLink ocamlDoneErr Error
- HiLink ocamlEndErr Error
- HiLink ocamlThenErr Error
-
- HiLink ocamlCharErr Error
-
- HiLink ocamlErr Error
-
- HiLink ocamlComment Comment
-
- HiLink ocamlModPath Include
- HiLink ocamlObject Include
- HiLink ocamlModule Include
- HiLink ocamlModParam1 Include
- HiLink ocamlModType Include
- HiLink ocamlMPRestr3 Include
- HiLink ocamlFullMod Include
- HiLink ocamlModTypeRestr Include
- HiLink ocamlWith Include
- HiLink ocamlMTDef Include
-
- HiLink ocamlScript Include
-
- HiLink ocamlConstructor Constant
-
- HiLink ocamlVal Keyword
- HiLink ocamlModPreRHS Keyword
- HiLink ocamlMPRestr2 Keyword
- HiLink ocamlKeyword Keyword
- HiLink ocamlMethod Include
- HiLink ocamlFunDef Keyword
- HiLink ocamlRefAssign Keyword
- HiLink ocamlKeyChar Keyword
- HiLink ocamlAnyVar Keyword
- HiLink ocamlTopStop Keyword
- HiLink ocamlOperator Keyword
-
- HiLink ocamlBoolean Boolean
- HiLink ocamlCharacter Character
- HiLink ocamlNumber Number
- HiLink ocamlFloat Float
- HiLink ocamlString String
-
- HiLink ocamlLabel Identifier
-
- HiLink ocamlType Type
-
- HiLink ocamlTodo Todo
-
- HiLink ocamlEncl Keyword
-
- delcommand HiLink
-endif
+" Only when an item doesn't have highlighting yet
+command -nargs=+ HiLink hi def link <args>
+
+HiLink ocamlBraceErr Error
+HiLink ocamlBrackErr Error
+HiLink ocamlParenErr Error
+HiLink ocamlArrErr Error
+
+HiLink ocamlCommentErr Error
+
+HiLink ocamlCountErr Error
+HiLink ocamlDoErr Error
+HiLink ocamlDoneErr Error
+HiLink ocamlEndErr Error
+HiLink ocamlThenErr Error
+
+HiLink ocamlCharErr Error
+
+HiLink ocamlErr Error
+
+HiLink ocamlComment Comment
+
+HiLink ocamlModPath Include
+HiLink ocamlObject Include
+HiLink ocamlModule Include
+HiLink ocamlModParam1 Include
+HiLink ocamlModType Include
+HiLink ocamlMPRestr3 Include
+HiLink ocamlFullMod Include
+HiLink ocamlModTypeRestr Include
+HiLink ocamlWith Include
+HiLink ocamlMTDef Include
+
+HiLink ocamlScript Include
+
+HiLink ocamlConstructor Constant
+
+HiLink ocamlVal Keyword
+HiLink ocamlModPreRHS Keyword
+HiLink ocamlMPRestr2 Keyword
+HiLink ocamlKeyword Keyword
+HiLink ocamlMethod Include
+HiLink ocamlFunDef Keyword
+HiLink ocamlRefAssign Keyword
+HiLink ocamlKeyChar Keyword
+HiLink ocamlAnyVar Keyword
+HiLink ocamlTopStop Keyword
+HiLink ocamlOperator Keyword
+
+HiLink ocamlBoolean Boolean
+HiLink ocamlCharacter Character
+HiLink ocamlNumber Number
+HiLink ocamlFloat Float
+HiLink ocamlString String
+
+HiLink ocamlLabel Identifier
+
+HiLink ocamlType Type
+
+HiLink ocamlTodo Todo
+
+HiLink ocamlEncl Keyword
+
+delcommand HiLink
let b:current_syntax = "ocaml"