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.
8 " For version 5.x: Clear all syntax items
9 " For version 6.x: Quit when a syntax file was already loaded
12 elseif exists("b:current_syntax")
18 syn region sgmldeclDeclBlock transparent start=+<!SGML+ end=+>+
19 syn region sgmldeclTagBlock transparent start=+<+ end=+>+
21 \ @sgmlTagError,@sgmlErrInTag
22 syn region sgmldeclComment contained start=+--+ end=+--+
24 syn keyword sgmldeclDeclKeys SGML CHARSET CAPACITY SCOPE SYNTAX
27 syn keyword sgmldeclTypes BASESET DESCSET DOCUMENT NAMING DELIM
28 \ NAMES QUANTITY SHUNCHAR DOCTYPE
29 \ ELEMENT ENTITY ATTLIST NOTATION
32 syn keyword sgmldeclStatem CONTROLS FUNCTION NAMECASE MINIMIZE
33 \ LINK OTHER APPINFO REF ENTITIES
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
40 syn match sgmldeclNConst contained +[0-9]\++
42 syn region sgmldeclString contained start=+"+ end=+"+
44 syn keyword sgmldeclBool YES NO
46 syn keyword sgmldeclSpecial SHORTREF SGMLREF UNUSED NONE GENERAL
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")
57 let did_sgmldecl_syntax_init = 1
58 command -nargs=+ HiLink hi link <args>
60 command -nargs=+ HiLink hi def link <args>
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
78 let b:current_syntax = "sgmldecl"