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