if exists("b:current_syntax")
finish
endif
let s:keepcpo= &cpo
set cpo&vim
syn case ignore
syn region	sgmldeclDeclBlock	transparent start=+<!SGML+ end=+>+
syn region	sgmldeclTagBlock	transparent start=+<+ end=+>+
\ contains=ALLBUT,
\ @sgmlTagError,@sgmlErrInTag
syn region	sgmldeclComment		contained start=+--+ end=+--+
syn keyword	sgmldeclDeclKeys	SGML CHARSET CAPACITY SCOPE SYNTAX
\ FEATURES
syn keyword	sgmldeclTypes		BASESET DESCSET DOCUMENT NAMING DELIM
\ NAMES QUANTITY SHUNCHAR DOCTYPE
\ ELEMENT ENTITY ATTLIST NOTATION
\ TYPE
syn keyword	sgmldeclStatem		CONTROLS FUNCTION NAMECASE MINIMIZE
\ LINK OTHER APPINFO REF ENTITIES
syn keyword sgmldeclVariables	TOTALCAP GRPCAP ENTCAP DATATAG OMITTAG RANK
\ SIMPLE IMPLICIT EXPLICIT CONCUR SUBDOC FORMAL ATTCAP
\ ATTCHCAP AVGRPCAP ELEMCAP ENTCHCAP IDCAP IDREFCAP
\ SHORTTAG
syn match	sgmldeclNConst		contained +[0-9]\++
syn region	sgmldeclString		contained start=+"+ end=+"+
syn keyword	sgmldeclBool		YES NO
syn keyword	sgmldeclSpecial		SHORTREF SGMLREF UNUSED NONE GENERAL
\ SEEALSO ANY
syn sync lines=250
hi def link sgmldeclDeclKeys	Keyword
hi def link sgmldeclTypes		Type
hi def link sgmldeclConst		Constant
hi def link sgmldeclNConst		Constant
hi def link sgmldeclString		String
hi def link sgmldeclDeclBlock	Normal
hi def link sgmldeclBool		Boolean
hi def link sgmldeclSpecial		Special
hi def link sgmldeclComment		Comment
hi def link sgmldeclStatem		Statement
hi def link sgmldeclVariables	Type
let b:current_syntax = "sgmldecl"
let &cpo = s:keepcpo
unlet s:keepcpo
