annotate runtime/syntax/sgmldecl.vim @ 6108:589fd07888ab v7.4.392

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