comparison runtime/syntax/texmf.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents 3fc0f57ecb91
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
4 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> 4 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
5 " Last Change: 2001-05-13 5 " Last Change: 2001-05-13
6 " URL: http://physics.muni.cz/~yeti/download/syntax/texmf.vim 6 " URL: http://physics.muni.cz/~yeti/download/syntax/texmf.vim
7 7
8 " Setup 8 " Setup
9 if version >= 600 9 " quit when a syntax file was already loaded
10 if exists("b:current_syntax") 10 if exists("b:current_syntax")
11 finish 11 finish
12 endif
13 else
14 syntax clear
15 endif 12 endif
16 13
17 syn case match 14 syn case match
18 15
19 " Comments 16 " Comments
43 " Catch errors caused by wrong parenthesization 40 " Catch errors caused by wrong parenthesization
44 syn region texmfBrace matchgroup=texmfBraceBrace start="{" end="}" contains=ALLBUT,texmfTodo,texmfBraceError,texmfLHSVariable,texmfLHSDot transparent 41 syn region texmfBrace matchgroup=texmfBraceBrace start="{" end="}" contains=ALLBUT,texmfTodo,texmfBraceError,texmfLHSVariable,texmfLHSDot transparent
45 syn match texmfBraceError "}" 42 syn match texmfBraceError "}"
46 43
47 " Define the default highlighting 44 " Define the default highlighting
48 if version >= 508 || !exists("did_texmf_syntax_inits") 45 command -nargs=+ HiLink hi def link <args>
49 if version < 508
50 let did_texmf_syntax_inits = 1
51 command -nargs=+ HiLink hi link <args>
52 else
53 command -nargs=+ HiLink hi def link <args>
54 endif
55 46
56 HiLink texmfComment Comment 47 HiLink texmfComment Comment
57 HiLink texmfTodo Todo 48 HiLink texmfTodo Todo
58 49
59 HiLink texmfPassedParameter texmfVariable 50 HiLink texmfPassedParameter texmfVariable
60 HiLink texmfVariable Identifier 51 HiLink texmfVariable Identifier
61 52
62 HiLink texmfNumber Number 53 HiLink texmfNumber Number
63 HiLink texmfString String 54 HiLink texmfString String
64 55
65 HiLink texmfLHSStart texmfLHS 56 HiLink texmfLHSStart texmfLHS
66 HiLink texmfLHSVariable texmfLHS 57 HiLink texmfLHSVariable texmfLHS
67 HiLink texmfLHSDot texmfLHS 58 HiLink texmfLHSDot texmfLHS
68 HiLink texmfLHS Type 59 HiLink texmfLHS Type
69 60
70 HiLink texmfEquals Normal 61 HiLink texmfEquals Normal
71 62
72 HiLink texmfBraceBrace texmfDelimiter 63 HiLink texmfBraceBrace texmfDelimiter
73 HiLink texmfComma texmfDelimiter 64 HiLink texmfComma texmfDelimiter
74 HiLink texmfColons texmfDelimiter 65 HiLink texmfColons texmfDelimiter
75 HiLink texmfDelimiter Preproc 66 HiLink texmfDelimiter Preproc
76 67
77 HiLink texmfDoubleExclam Statement 68 HiLink texmfDoubleExclam Statement
78 HiLink texmfSpecial Special 69 HiLink texmfSpecial Special
79 70
80 HiLink texmfBraceError texmfError 71 HiLink texmfBraceError texmfError
81 HiLink texmfError Error 72 HiLink texmfError Error
82 73
83 delcommand HiLink 74 delcommand HiLink
84 endif
85 75
86 let b:current_syntax = "texmf" 76 let b:current_syntax = "texmf"