1" Vim syntax file 2" This is a GENERATED FILE. Please always refer to source file at the URI below. 3" Language: Web2C TeX texmf.cnf configuration file 4" Maintainer: David Ne\v{c}as (Yeti) <[email protected]> 5" Last Change: 2001-05-13 6" URL: http://physics.muni.cz/~yeti/download/syntax/texmf.vim 7 8" Setup 9" quit when a syntax file was already loaded 10if exists("b:current_syntax") 11 finish 12endif 13 14syn case match 15 16" Comments 17syn match texmfComment "%..\+$" contains=texmfTodo 18syn match texmfComment "%\s*$" contains=texmfTodo 19syn keyword texmfTodo TODO FIXME XXX NOT contained 20 21" Constants and parameters 22syn match texmfPassedParameter "[-+]\=%\w\W" 23syn match texmfPassedParameter "[-+]\=%\w$" 24syn match texmfNumber "\<\d\+\>" 25syn match texmfVariable "\$\(\w\k*\|{\w\k*}\)" 26syn match texmfSpecial +\\"\|\\$+ 27syn region texmfString start=+"+ end=+"+ skip=+\\"\\\\+ contains=texmfVariable,texmfSpecial,texmfPassedParameter 28 29" Assignments 30syn match texmfLHSStart "^\s*\w\k*" nextgroup=texmfLHSDot,texmfEquals 31syn match texmfLHSVariable "\w\k*" contained nextgroup=texmfLHSDot,texmfEquals 32syn match texmfLHSDot "\." contained nextgroup=texmfLHSVariable 33syn match texmfEquals "\s*=" contained 34 35" Specialities 36syn match texmfComma "," contained 37syn match texmfColons ":\|;" 38syn match texmfDoubleExclam "!!" contained 39 40" Catch errors caused by wrong parenthesization 41syn region texmfBrace matchgroup=texmfBraceBrace start="{" end="}" contains=ALLBUT,texmfTodo,texmfBraceError,texmfLHSVariable,texmfLHSDot transparent 42syn match texmfBraceError "}" 43 44" Define the default highlighting 45 46hi def link texmfComment Comment 47hi def link texmfTodo Todo 48 49hi def link texmfPassedParameter texmfVariable 50hi def link texmfVariable Identifier 51 52hi def link texmfNumber Number 53hi def link texmfString String 54 55hi def link texmfLHSStart texmfLHS 56hi def link texmfLHSVariable texmfLHS 57hi def link texmfLHSDot texmfLHS 58hi def link texmfLHS Type 59 60hi def link texmfEquals Normal 61 62hi def link texmfBraceBrace texmfDelimiter 63hi def link texmfComma texmfDelimiter 64hi def link texmfColons texmfDelimiter 65hi def link texmfDelimiter Preproc 66 67hi def link texmfDoubleExclam Statement 68hi def link texmfSpecial Special 69 70hi def link texmfBraceError texmfError 71hi def link texmfError Error 72 73 74let b:current_syntax = "texmf" 75