annotate runtime/syntax/bst.vim @ 1624:18ee39301b82 v7.2a

updated for version 7.2a
author vimboss
date Tue, 24 Jun 2008 22:58:06 +0000
parents 96cd8222a819
children 7bc41231fbc7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
846
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
1 " Vim syntax file
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
2 " Language: BibTeX Bibliography Style
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 846
diff changeset
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.info>
846
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
4 " Filenames: *.bst
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
5 " $Id$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
6
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
9 if version < 600
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
10 syntax clear
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
12 finish
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
13 endif
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
14
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
15 if version < 600
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
16 command -nargs=1 SetIsk set iskeyword=<args>
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
17 else
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
18 command -nargs=1 SetIsk setlocal iskeyword=<args>
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
19 endif
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
20 SetIsk 48-57,#,$,',.,A-Z,a-z
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
21 delcommand SetIsk
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
22
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
23 syn case ignore
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
24
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 846
diff changeset
25 syn match bstString +"[^"]*\%("\|$\)+ contains=bstField,bstType,bstError
96cd8222a819 updated for version 7.1a
vimboss
parents: 846
diff changeset
26 " Highlight the last character of an unclosed string, but only when the cursor
96cd8222a819 updated for version 7.1a
vimboss
parents: 846
diff changeset
27 " is not beyond it (i.e., it is still being edited). Imperfect.
96cd8222a819 updated for version 7.1a
vimboss
parents: 846
diff changeset
28 syn match bstError '[^"]\%#\@!$' contained
96cd8222a819 updated for version 7.1a
vimboss
parents: 846
diff changeset
29
846
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
30 syn match bstNumber "#-\=\d\+\>"
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
31 syn keyword bstNumber entry.max$ global.max$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
32 syn match bstComment "%.*"
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
33
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
34 syn keyword bstCommand ENTRY FUNCTION INTEGERS MACRO STRINGS
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
35 syn keyword bstCommand READ EXECUTE ITERATE REVERSE SORT
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
36 syn match bstBuiltIn "\s[-<>=+*]\|\s:="
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
37 syn keyword bstBuiltIn add.period$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
38 syn keyword bstBuiltIn call.type$ change.case$ chr.to.int$ cite$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
39 syn keyword bstBuiltIn duplicate$ empty$ format.name$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
40 syn keyword bstBuiltIn if$ int.to.chr$ int.to.str$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
41 syn keyword bstBuiltIn missing$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
42 syn keyword bstBuiltIn newline$ num.names$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
43 syn keyword bstBuiltIn pop$ preamble$ purify$ quote$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
44 syn keyword bstBuiltIn skip$ stack$ substring$ swap$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
45 syn keyword bstBuiltIn text.length$ text.prefix$ top$ type$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
46 syn keyword bstBuiltIn warning$ while$ width$ write$
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
47 syn match bstIdentifier "'\k*"
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
48 syn keyword bstType article book booklet conference
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
49 syn keyword bstType inbook incollection inproceedings
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
50 syn keyword bstType manual mastersthesis misc
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
51 syn keyword bstType phdthesis proceedings
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
52 syn keyword bstType techreport unpublished
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
53 syn keyword bstField abbr address annote author
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
54 syn keyword bstField booktitle chapter crossref comment
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
55 syn keyword bstField edition editor
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
56 syn keyword bstField howpublished institution journal key month
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
57 syn keyword bstField note number
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
58 syn keyword bstField organization
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
59 syn keyword bstField pages publisher
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
60 syn keyword bstField school series
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
61 syn keyword bstField title type
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
62 syn keyword bstField volume year
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
63
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
64 " Define the default highlighting.
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
65 " For version 5.7 and earlier: only when not done already
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
66 " For version 5.8 and later: only when an item doesn't have highlighting yet
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
67 if version >= 508 || !exists("did_bst_syn_inits")
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
68 if version < 508
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
69 let did_bst_syn_inits = 1
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
70 command -nargs=+ HiLink hi link <args>
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
71 else
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
72 command -nargs=+ HiLink hi def link <args>
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
73 endif
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
74
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
75 HiLink bstComment Comment
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
76 HiLink bstString String
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
77 HiLink bstCommand PreProc
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
78 HiLink bstBuiltIn Statement
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
79 HiLink bstField Special
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
80 HiLink bstNumber Number
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
81 HiLink bstType Type
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
82 HiLink bstIdentifier Identifier
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 846
diff changeset
83 HiLink bstError Error
846
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
84 delcommand HiLink
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
85 endif
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
86
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
87 let b:current_syntax = "bst"
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
88
db44f7b81373 updated for version 7.0f03
vimboss
parents:
diff changeset
89 " vim:set ft=vim sts=4 sw=4: