aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/texmf.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/texmf.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/texmf.vim')
-rw-r--r--runtime/syntax/texmf.vim58
1 files changed, 24 insertions, 34 deletions
diff --git a/runtime/syntax/texmf.vim b/runtime/syntax/texmf.vim
index 7b91168f08..4c3ccf8f45 100644
--- a/runtime/syntax/texmf.vim
+++ b/runtime/syntax/texmf.vim
@@ -6,12 +6,9 @@
" URL: http://physics.muni.cz/~yeti/download/syntax/texmf.vim
" Setup
-if version >= 600
- if exists("b:current_syntax")
- finish
- endif
-else
- syntax clear
+" quit when a syntax file was already loaded
+if exists("b:current_syntax")
+ finish
endif
syn case match
@@ -45,42 +42,35 @@ syn region texmfBrace matchgroup=texmfBraceBrace start="{" end="}" contains=ALLB
syn match texmfBraceError "}"
" Define the default highlighting
-if version >= 508 || !exists("did_texmf_syntax_inits")
- if version < 508
- let did_texmf_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>
- HiLink texmfComment Comment
- HiLink texmfTodo Todo
+HiLink texmfComment Comment
+HiLink texmfTodo Todo
- HiLink texmfPassedParameter texmfVariable
- HiLink texmfVariable Identifier
+HiLink texmfPassedParameter texmfVariable
+HiLink texmfVariable Identifier
- HiLink texmfNumber Number
- HiLink texmfString String
+HiLink texmfNumber Number
+HiLink texmfString String
- HiLink texmfLHSStart texmfLHS
- HiLink texmfLHSVariable texmfLHS
- HiLink texmfLHSDot texmfLHS
- HiLink texmfLHS Type
+HiLink texmfLHSStart texmfLHS
+HiLink texmfLHSVariable texmfLHS
+HiLink texmfLHSDot texmfLHS
+HiLink texmfLHS Type
- HiLink texmfEquals Normal
+HiLink texmfEquals Normal
- HiLink texmfBraceBrace texmfDelimiter
- HiLink texmfComma texmfDelimiter
- HiLink texmfColons texmfDelimiter
- HiLink texmfDelimiter Preproc
+HiLink texmfBraceBrace texmfDelimiter
+HiLink texmfComma texmfDelimiter
+HiLink texmfColons texmfDelimiter
+HiLink texmfDelimiter Preproc
- HiLink texmfDoubleExclam Statement
- HiLink texmfSpecial Special
+HiLink texmfDoubleExclam Statement
+HiLink texmfSpecial Special
- HiLink texmfBraceError texmfError
- HiLink texmfError Error
+HiLink texmfBraceError texmfError
+HiLink texmfError Error
- delcommand HiLink
-endif
+delcommand HiLink
let b:current_syntax = "texmf"