annotate runtime/syntax/sgmldecl.vim @ 7:3fc0f57ecb91 v7.0001

updated for version 7.0001
author vimboss
date Sun, 13 Jun 2004 20:20:40 +0000
parents
children d1e4abe8342c
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 " Language: SGML (SGML Declaration <!SGML ...>)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Last Change: jueves, 28 de diciembre de 2000, 13:51:44 CLST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: "Daniel A. Molina W." <sickd@linux-chile.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " You can modify and maintain this file, in other case send comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " the maintainer email address.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn region sgmldeclDeclBlock transparent start=+<!SGML+ end=+>+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn region sgmldeclTagBlock transparent start=+<+ end=+>+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 \ contains=ALLBUT,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 \ @sgmlTagError,@sgmlErrInTag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn region sgmldeclComment contained start=+--+ end=+--+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword sgmldeclDeclKeys SGML CHARSET CAPACITY SCOPE SYNTAX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 \ FEATURES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword sgmldeclTypes BASESET DESCSET DOCUMENT NAMING DELIM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 \ NAMES QUANTITY SHUNCHAR DOCTYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 \ ELEMENT ENTITY ATTLIST NOTATION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 \ TYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword sgmldeclStatem CONTROLS FUNCTION NAMECASE MINIMIZE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 \ LINK OTHER APPINFO REF ENTITIES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword sgmldeclVariables TOTALCAP GRPCAP ENTCAP DATATAG OMITTAG RANK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 \ SIMPLE IMPLICIT EXPLICIT CONCUR SUBDOC FORMAL ATTCAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 \ ATTCHCAP AVGRPCAP ELEMCAP ENTCHCAP IDCAP IDREFCAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 \ SHORTTAG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match sgmldeclNConst contained +[0-9]\++
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn region sgmldeclString contained start=+"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword sgmldeclBool YES NO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword sgmldeclSpecial SHORTREF SGMLREF UNUSED NONE GENERAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 \ SEEALSO ANY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn sync lines=250
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 if version >= 508 || !exists("did_sgmldecl_syntax_init")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 let did_sgmldecl_syntax_init = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink sgmldeclDeclKeys Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink sgmldeclTypes Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink sgmldeclConst Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink sgmldeclNConst Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink sgmldeclString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink sgmldeclDeclBlock Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink sgmldeclBool Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink sgmldeclSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink sgmldeclComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink sgmldeclStatem Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink sgmldeclVariables Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 let b:current_syntax = "sgmldecl"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " vim:set tw=78 ts=4: