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." <[email protected]> 5" You can modify and maintain this file, in other case send comments 6" the maintainer email address. 7 8" quit when a syntax file was already loaded 9if exists("b:current_syntax") 10 finish 11endif 12let s:keepcpo= &cpo 13set cpo&vim 14 15syn case ignore 16 17syn region sgmldeclDeclBlock transparent start=+<!SGML+ end=+>+ 18syn region sgmldeclTagBlock transparent start=+<+ end=+>+ 19 \ contains=ALLBUT, 20 \ @sgmlTagError,@sgmlErrInTag 21syn region sgmldeclComment contained start=+--+ end=+--+ 22 23syn keyword sgmldeclDeclKeys SGML CHARSET CAPACITY SCOPE SYNTAX 24 \ FEATURES 25 26syn keyword sgmldeclTypes BASESET DESCSET DOCUMENT NAMING DELIM 27 \ NAMES QUANTITY SHUNCHAR DOCTYPE 28 \ ELEMENT ENTITY ATTLIST NOTATION 29 \ TYPE 30 31syn keyword sgmldeclStatem CONTROLS FUNCTION NAMECASE MINIMIZE 32 \ LINK OTHER APPINFO REF ENTITIES 33 34syn keyword sgmldeclVariables TOTALCAP GRPCAP ENTCAP DATATAG OMITTAG RANK 35 \ SIMPLE IMPLICIT EXPLICIT CONCUR SUBDOC FORMAL ATTCAP 36 \ ATTCHCAP AVGRPCAP ELEMCAP ENTCHCAP IDCAP IDREFCAP 37 \ SHORTTAG 38 39syn match sgmldeclNConst contained +[0-9]\++ 40 41syn region sgmldeclString contained start=+"+ end=+"+ 42 43syn keyword sgmldeclBool YES NO 44 45syn keyword sgmldeclSpecial SHORTREF SGMLREF UNUSED NONE GENERAL 46 \ SEEALSO ANY 47 48syn sync lines=250 49 50 51" Define the default highlighting. 52" Only when an item doesn't have highlighting yet 53 54hi def link sgmldeclDeclKeys Keyword 55hi def link sgmldeclTypes Type 56hi def link sgmldeclConst Constant 57hi def link sgmldeclNConst Constant 58hi def link sgmldeclString String 59hi def link sgmldeclDeclBlock Normal 60hi def link sgmldeclBool Boolean 61hi def link sgmldeclSpecial Special 62hi def link sgmldeclComment Comment 63hi def link sgmldeclStatem Statement 64hi def link sgmldeclVariables Type 65 66 67let b:current_syntax = "sgmldecl" 68 69let &cpo = s:keepcpo 70unlet s:keepcpo 71 72" vim:set tw=78 ts=4: 73