aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/ncf.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/ncf.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/ncf.vim')
-rw-r--r--runtime/syntax/ncf.vim71
1 files changed, 31 insertions, 40 deletions
diff --git a/runtime/syntax/ncf.vim b/runtime/syntax/ncf.vim
index 2019c03723..b458e630f2 100644
--- a/runtime/syntax/ncf.vim
+++ b/runtime/syntax/ncf.vim
@@ -4,10 +4,8 @@
" Last Change: Tue, 04 Sep 2001 16:20:33 CDT
" $Id: ncf.vim,v 1.1 2004/06/13 16:31:58 vimboss Exp $
-" Remove any old syntax stuff hanging around
-if version < 600
- syn clear
-elseif exists("b:current_syntax")
+" quit when a syntax file was already loaded
+if exists("b:current_syntax")
finish
endif
@@ -217,42 +215,35 @@ if exists("ncf_highlight_unknowns")
syn match Error "[^ \t]*" contains=ALL
endif
-if version >= 508 || !exists("did_ncf_syntax_inits")
- if version < 508
- let did_ncf_syntax_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
+command -nargs=+ HiLink hi def link <args>
+
+" The default methods for highlighting. Can be overridden later
+HiLink ncfCommands Statement
+HiLink ncfSetCommands ncfCommands
+HiLink ncfLogins ncfCommands
+HiLink ncfString String
+HiLink ncfContString ncfString
+HiLink ncfComment Comment
+HiLink ncfImplicit Type
+HiLink ncfBoolean Boolean
+HiLink ncfScript Identifier
+HiLink ncfNumber Number
+HiLink ncfIPAddr ncfNumber
+HiLink ncfHexNumber ncfNumber
+HiLink ncfTime ncfNumber
+HiLink ncfDSTTime ncfNumber
+HiLink ncfPath Constant
+HiLink ncfServerName Special
+HiLink ncfIPXNet ncfServerName
+HiLink ncfTimeTypes Constant
+HiLink ncfSetCommandsNum ncfSetCommands
+HiLink ncfSetCommandsBool ncfSetCommands
+HiLink ncfSetCommandsStr ncfSetCommands
+HiLink ncfSetCommandsTime ncfSetCommands
+HiLink ncfSetCommandsTimeDate ncfSetCommands
+HiLink ncfSetCommandsBindCon ncfSetCommands
+
+delcommand HiLink
- " The default methods for highlighting. Can be overridden later
- HiLink ncfCommands Statement
- HiLink ncfSetCommands ncfCommands
- HiLink ncfLogins ncfCommands
- HiLink ncfString String
- HiLink ncfContString ncfString
- HiLink ncfComment Comment
- HiLink ncfImplicit Type
- HiLink ncfBoolean Boolean
- HiLink ncfScript Identifier
- HiLink ncfNumber Number
- HiLink ncfIPAddr ncfNumber
- HiLink ncfHexNumber ncfNumber
- HiLink ncfTime ncfNumber
- HiLink ncfDSTTime ncfNumber
- HiLink ncfPath Constant
- HiLink ncfServerName Special
- HiLink ncfIPXNet ncfServerName
- HiLink ncfTimeTypes Constant
- HiLink ncfSetCommandsNum ncfSetCommands
- HiLink ncfSetCommandsBool ncfSetCommands
- HiLink ncfSetCommandsStr ncfSetCommands
- HiLink ncfSetCommandsTime ncfSetCommands
- HiLink ncfSetCommandsTimeDate ncfSetCommands
- HiLink ncfSetCommandsBindCon ncfSetCommands
-
- delcommand HiLink
-
-endif
let b:current_syntax = "ncf"