annotate runtime/syntax/texmf.vim @ 6007:ce284c205558 v7.4.344

updated for version 7.4.344 Problem: Unessecary initializations and other things related to matchaddpos(). Solution: Code cleanup. (Alexey Radkov)
author Bram Moolenaar <bram@vim.org>
date Wed, 25 Jun 2014 18:15:22 +0200
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " This is a GENERATED FILE. Please always refer to source file at the URI below.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Language: Web2C TeX texmf.cnf configuration file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2001-05-13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://physics.muni.cz/~yeti/download/syntax/texmf.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Setup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match texmfComment "%..\+$" contains=texmfTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match texmfComment "%\s*$" contains=texmfTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword texmfTodo TODO FIXME XXX NOT contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " Constants and parameters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match texmfPassedParameter "[-+]\=%\w\W"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match texmfPassedParameter "[-+]\=%\w$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match texmfNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match texmfVariable "\$\(\w\k*\|{\w\k*}\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match texmfSpecial +\\"\|\\$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region texmfString start=+"+ end=+"+ skip=+\\"\\\\+ contains=texmfVariable,texmfSpecial,texmfPassedParameter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " Assignments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match texmfLHSStart "^\s*\w\k*" nextgroup=texmfLHSDot,texmfEquals
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match texmfLHSVariable "\w\k*" contained nextgroup=texmfLHSDot,texmfEquals
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match texmfLHSDot "\." contained nextgroup=texmfLHSVariable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match texmfEquals "\s*=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Specialities
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match texmfComma "," contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match texmfColons ":\|;"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match texmfDoubleExclam "!!" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " Catch errors caused by wrong parenthesization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn region texmfBrace matchgroup=texmfBraceBrace start="{" end="}" contains=ALLBUT,texmfTodo,texmfBraceError,texmfLHSVariable,texmfLHSDot transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match texmfBraceError "}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 if version >= 508 || !exists("did_texmf_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 let did_texmf_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink texmfComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink texmfTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink texmfPassedParameter texmfVariable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink texmfVariable Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink texmfNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink texmfString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink texmfLHSStart texmfLHS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink texmfLHSVariable texmfLHS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink texmfLHSDot texmfLHS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink texmfLHS Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink texmfEquals Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink texmfBraceBrace texmfDelimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink texmfComma texmfDelimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink texmfColons texmfDelimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink texmfDelimiter Preproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink texmfDoubleExclam Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink texmfSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink texmfBraceError texmfError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink texmfError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 let b:current_syntax = "texmf"