blob: 6a69fc5d201fd7c712c106daab9e2c4bb9fc124a [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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
10if version < 600
11 syntax clear
12elseif exists("b:current_syntax")
13 finish
14endif
15
16syn case ignore
17
18syn region sgmldeclDeclBlock transparent start=+<!SGML+ end=+>+
19syn region sgmldeclTagBlock transparent start=+<+ end=+>+
20 \ contains=ALLBUT,
21 \ @sgmlTagError,@sgmlErrInTag
22syn region sgmldeclComment contained start=+--+ end=+--+
23
24syn keyword sgmldeclDeclKeys SGML CHARSET CAPACITY SCOPE SYNTAX
25 \ FEATURES
26
27syn keyword sgmldeclTypes BASESET DESCSET DOCUMENT NAMING DELIM
28 \ NAMES QUANTITY SHUNCHAR DOCTYPE
29 \ ELEMENT ENTITY ATTLIST NOTATION
30 \ TYPE
31
32syn keyword sgmldeclStatem CONTROLS FUNCTION NAMECASE MINIMIZE
33 \ LINK OTHER APPINFO REF ENTITIES
34
35syn 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
40syn match sgmldeclNConst contained +[0-9]\++
41
42syn region sgmldeclString contained start=+"+ end=+"+
43
44syn keyword sgmldeclBool YES NO
45
46syn keyword sgmldeclSpecial SHORTREF SGMLREF UNUSED NONE GENERAL
47 \ SEEALSO ANY
48
49syn 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
55if 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
76endif
77
78let b:current_syntax = "sgmldecl"
79" vim:set tw=78 ts=4: