annotate runtime/syntax/html.vim @ 24024:ef454a7f485d

Update runtime files. Commit: https://github.com/vim/vim/commit/9faec4e3d439968e21ad74e917aebb289df8f849 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 27 16:38:07 2021 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Feb 2021 16:45:04 +0100
parents bceeded72898
children 788e10cec9bd
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
10498
883396809b45 commit https://github.com/vim/vim/commit/bc2eada5424bff06f7eb77c032ecc067da52b846
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
2 " Language: HTML
24024
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
3 " Previous Maintainer: Jorge Maldonado Ventura <jorgesumle@freakspot.net>
10498
883396809b45 commit https://github.com/vim/vim/commit/bc2eada5424bff06f7eb77c032ecc067da52b846
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
4 " Previous Maintainer: Claudio Fleiner <claudio@fleiner.com>
10548
74effdaa369e Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10498
diff changeset
5 " Repository: https://notabug.org/jorgesumle/vim-html-syntax
24024
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
6 " Last Change: 2021 Feb 25
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
7 " Included patch #7900 to fix comments
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
8 "
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " Please check :help html.vim for some comments and a description of the options
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
12 " quit when a syntax file was already loaded
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 if !exists("main_syntax")
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
14 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 let main_syntax = 'html'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
20 let s:cpo_save = &cpo
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
21 set cpo&vim
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
22
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 829
diff changeset
23 syntax spell toplevel
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " mark illegal characters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match htmlError "[<>&]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region htmlString contained start=+"+ end=+"+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region htmlString contained start=+'+ end=+'+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match htmlValue contained "=[\t ]*[^'" \t>][^ \t>]*"hs=s+1 contains=javaScriptExpression,@htmlPreproc
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
35 syn region htmlEndTag start=+</+ end=+>+ contains=htmlTagN,htmlTagError
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
36 syn region htmlTag start=+<[^/]+ end=+>+ fold contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match htmlTagN contained +<\s*[-a-zA-Z0-9]\++hs=s+1 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match htmlTagN contained +</\s*[-a-zA-Z0-9]\++hs=s+2 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match htmlTagError contained "[^>]<"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " tag names
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword htmlTagName contained address applet area a base basefont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword htmlTagName contained big blockquote br caption center
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword htmlTagName contained cite code dd dfn dir div dl dt font
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword htmlTagName contained form hr html img
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword htmlTagName contained input isindex kbd li link map menu
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword htmlTagName contained meta ol option param pre p samp span
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
49 syn keyword htmlTagName contained select small sub sup
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword htmlTagName contained table td textarea th tr tt ul var xmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match htmlTagName contained "\<\(b\|i\|u\|h[1-6]\|em\|strong\|head\|body\|title\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " new html 4.0 tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword htmlTagName contained abbr acronym bdo button col label
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
55 syn keyword htmlTagName contained colgroup fieldset iframe ins legend
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword htmlTagName contained object optgroup q s tbody tfoot thead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
10498
883396809b45 commit https://github.com/vim/vim/commit/bc2eada5424bff06f7eb77c032ecc067da52b846
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
58 " new html 5 tags
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10548
diff changeset
59 syn keyword htmlTagName contained article aside audio bdi canvas data
18972
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16267
diff changeset
60 syn keyword htmlTagName contained datalist details dialog embed figcaption
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16267
diff changeset
61 syn keyword htmlTagName contained figure footer header hgroup keygen main
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16267
diff changeset
62 syn keyword htmlTagName contained mark menuitem meter nav output picture
10498
883396809b45 commit https://github.com/vim/vim/commit/bc2eada5424bff06f7eb77c032ecc067da52b846
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
63 syn keyword htmlTagName contained progress rb rp rt rtc ruby section
19721
bceeded72898 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
64 syn keyword htmlTagName contained slot source summary template time track
bceeded72898 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
65 syn keyword htmlTagName contained video wbr
10498
883396809b45 commit https://github.com/vim/vim/commit/bc2eada5424bff06f7eb77c032ecc067da52b846
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
66
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " legal arg names
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword htmlArg contained action
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword htmlArg contained align alink alt archive background bgcolor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword htmlArg contained border bordercolor cellpadding
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword htmlArg contained cellspacing checked class clear code codebase color
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword htmlArg contained cols colspan content coords enctype face
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword htmlArg contained gutter height hspace id
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword htmlArg contained link lowsrc marginheight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword htmlArg contained marginwidth maxlength method name prompt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword htmlArg contained rel rev rows rowspan scrolling selected shape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword htmlArg contained size src start target text type url
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword htmlArg contained usemap ismap valign value vlink vspace width wrap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn match htmlArg contained "\<\(http-equiv\|href\|title\)="me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
14123
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
81 " aria attributes
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
82 syn match htmlArg contained "\<\(aria-activedescendant\|aria-atomic\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
83 syn match htmlArg contained "\<\(aria-autocomplete\|aria-busy\|aria-checked\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
84 syn match htmlArg contained "\<\(aria-colcount\|aria-colindex\|aria-colspan\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
85 syn match htmlArg contained "\<\(aria-controls\|aria-current\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
86 syn match htmlArg contained "\<\(aria-describedby\|aria-details\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
87 syn match htmlArg contained "\<\(aria-disabled\|aria-dropeffect\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
88 syn match htmlArg contained "\<\(aria-errormessage\|aria-expanded\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
89 syn match htmlArg contained "\<\(aria-flowto\|aria-grabbed\|aria-haspopup\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
90 syn match htmlArg contained "\<\(aria-hidden\|aria-invalid\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
91 syn match htmlArg contained "\<\(aria-keyshortcuts\|aria-label\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
92 syn match htmlArg contained "\<\(aria-labelledby\|aria-level\|aria-live\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
93 syn match htmlArg contained "\<\(aria-modal\|aria-multiline\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
94 syn match htmlArg contained "\<\(aria-multiselectable\|aria-orientation\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
95 syn match htmlArg contained "\<\(aria-owns\|aria-placeholder\|aria-posinset\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
96 syn match htmlArg contained "\<\(aria-pressed\|aria-readonly\|aria-relevant\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
97 syn match htmlArg contained "\<\(aria-required\|aria-roledescription\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
98 syn match htmlArg contained "\<\(aria-rowcount\|aria-rowindex\|aria-rowspan\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
99 syn match htmlArg contained "\<\(aria-selected\|aria-setsize\|aria-sort\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
100 syn match htmlArg contained "\<\(aria-valuemax\|aria-valuemin\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
101 syn match htmlArg contained "\<\(aria-valuenow\|aria-valuetext\)\>"
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
102 syn keyword htmlArg contained role
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13051
diff changeset
103
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 " Netscape extensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword htmlTagName contained frame noframes frameset nobr blink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword htmlTagName contained layer ilayer nolayer spacer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword htmlArg contained frameborder noresize pagex pagey above below
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword htmlArg contained left top visibility clip id noshade
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn match htmlArg contained "\<z-index\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 " Microsoft extensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword htmlTagName contained marquee
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 " html 4.0 arg names
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn match htmlArg contained "\<\(accept-charset\|label\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword htmlArg contained abbr accept accesskey axis char charoff charset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword htmlArg contained cite classid codetype compact data datetime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword htmlArg contained declare defer dir disabled for frame
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword htmlArg contained headers hreflang lang language longdesc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword htmlArg contained multiple nohref nowrap object profile readonly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword htmlArg contained rules scheme scope span standby style
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword htmlArg contained summary tabindex valuetype version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
10548
74effdaa369e Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10498
diff changeset
124 " html 5 arg names
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10548
diff changeset
125 syn keyword htmlArg contained allowfullscreen async autocomplete autofocus
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10548
diff changeset
126 syn keyword htmlArg contained autoplay challenge contenteditable contextmenu
18972
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16267
diff changeset
127 syn keyword htmlArg contained controls crossorigin default dirname download
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16267
diff changeset
128 syn keyword htmlArg contained draggable dropzone form formaction formenctype
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16267
diff changeset
129 syn keyword htmlArg contained formmethod formnovalidate formtarget hidden
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16267
diff changeset
130 syn keyword htmlArg contained high icon inputmode keytype kind list loop low
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16267
diff changeset
131 syn keyword htmlArg contained max min minlength muted nonce novalidate open
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10548
diff changeset
132 syn keyword htmlArg contained optimum pattern placeholder poster preload
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10548
diff changeset
133 syn keyword htmlArg contained radiogroup required reversed sandbox spellcheck
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10548
diff changeset
134 syn keyword htmlArg contained sizes srcset srcdoc srclang step title translate
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10548
diff changeset
135 syn keyword htmlArg contained typemustmatch
10548
74effdaa369e Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10498
diff changeset
136
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 " special characters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn match htmlSpecialChar "&#\=[0-9A-Za-z]\{1,8};"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 " Comments (the real ones or the old netscape ones)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 if exists("html_wrong_comments")
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
142 syn region htmlComment start=+<!--+ end=+--\s*>+ contains=@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 else
24024
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
144 " The HTML 5.2 syntax 8.2.4.41-42: bogus comment is parser error; browser skips until next &gt;
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
145 " Note: must stand first to get lesser :syn-priority
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
146 syn region htmlComment start=+<!+ end=+>+ contains=htmlCommentError
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
147 " Normal comment opening <!-- ...>
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
148 syn region htmlComment start=+<!--+ end=+>+ contains=htmlCommentPart,@Spell
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
149 " Idem 8.2.4.43-44: <!--> and <!---> are parser errors; browser treats as comments
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
150 syn match htmlComment "<!---\?>" contains=htmlCommentError
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
151 " Idem 8.2.4.51: any number of consecutive dashes within comment is okay; --> closes comment
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
152 " Idem 8.2.4.52: closing comment by dash-dash-bang (--!>) is error ignored by parser(!); closes comment
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
153 syn region htmlCommentPart contained start=+--+ end=+--!\?>+me=e-1 contains=htmlCommentNested,@htmlPreProc,@Spell
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
154 " Idem 8.2.4.49: opening nested comment <!-- is parser error, ignored by browser, except <!--> is all right
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
155 syn match htmlCommentNested contained "<!--[^>]"me=e-1
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
156 syn match htmlCommentNested contained "<!--->"me=e-3
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
157 syn match htmlCommentNested contained "<!---\?!>"me=e-4
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
158 syn match htmlCommentError contained "[^><!]"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 endif
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
160 syn region htmlComment start=+<!DOCTYPE+ keepend end=+>+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 " server-parsed commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn region htmlPreProc start=+<!--#+ end=+-->+ contains=htmlPreStmt,htmlPreError,htmlPreAttr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn match htmlPreStmt contained "<!--#\(config\|echo\|exec\|fsize\|flastmod\|include\|printenv\|set\|if\|elif\|else\|endif\|geoguide\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn match htmlPreError contained "<!--#\S*"ms=s+4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn match htmlPreAttr contained "\w\+=[^"]\S\+" contains=htmlPreProcAttrError,htmlPreProcAttrName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn region htmlPreAttr contained start=+\w\+="+ skip=+\\\\\|\\"+ end=+"+ contains=htmlPreProcAttrName keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn match htmlPreProcAttrError contained "\w\+="he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn match htmlPreProcAttrName contained "\(expr\|errmsg\|sizefmt\|timefmt\|var\|cgi\|cmd\|file\|virtual\|value\)="he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 if !exists("html_no_rendering")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 " rendering
419
f713fc55bf7b updated for version 7.0109
vimboss
parents: 391
diff changeset
173 syn cluster htmlTop contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLink,javaScript,@htmlPreproc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
16267
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
175 syn region htmlStrike start="<del\>" end="</del\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
176 syn region htmlStrike start="<strike\>" end="</strike\_s*>"me=s-1 contains=@htmlTop
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
177
16267
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
178 syn region htmlBold start="<b\>" end="</b\_s*>"me=s-1 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
179 syn region htmlBold start="<strong\>" end="</strong\_s*>"me=s-1 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
180 syn region htmlBoldUnderline contained start="<u\>" end="</u\_s*>"me=s-1 contains=@htmlTop,htmlBoldUnderlineItalic
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
181 syn region htmlBoldItalic contained start="<i\>" end="</i\_s*>"me=s-1 contains=@htmlTop,htmlBoldItalicUnderline
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
182 syn region htmlBoldItalic contained start="<em\>" end="</em\_s*>"me=s-1 contains=@htmlTop,htmlBoldItalicUnderline
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
183 syn region htmlBoldUnderlineItalic contained start="<i\>" end="</i\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
184 syn region htmlBoldUnderlineItalic contained start="<em\>" end="</em\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
185 syn region htmlBoldItalicUnderline contained start="<u\>" end="</u\_s*>"me=s-1 contains=@htmlTop,htmlBoldUnderlineItalic
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186
16267
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
187 syn region htmlUnderline start="<u\>" end="</u\_s*>"me=s-1 contains=@htmlTop,htmlUnderlineBold,htmlUnderlineItalic
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
188 syn region htmlUnderlineBold contained start="<b\>" end="</b\_s*>"me=s-1 contains=@htmlTop,htmlUnderlineBoldItalic
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
189 syn region htmlUnderlineBold contained start="<strong\>" end="</strong\_s*>"me=s-1 contains=@htmlTop,htmlUnderlineBoldItalic
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
190 syn region htmlUnderlineItalic contained start="<i\>" end="</i\_s*>"me=s-1 contains=@htmlTop,htmlUnderlineItalicBold
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
191 syn region htmlUnderlineItalic contained start="<em\>" end="</em\_s*>"me=s-1 contains=@htmlTop,htmlUnderlineItalicBold
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
192 syn region htmlUnderlineItalicBold contained start="<b\>" end="</b\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
193 syn region htmlUnderlineItalicBold contained start="<strong\>" end="</strong\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
194 syn region htmlUnderlineBoldItalic contained start="<i\>" end="</i\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
195 syn region htmlUnderlineBoldItalic contained start="<em\>" end="</em\_s*>"me=s-1 contains=@htmlTop
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
16267
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
197 syn region htmlItalic start="<i\>" end="</i\_s*>"me=s-1 contains=@htmlTop,htmlItalicBold,htmlItalicUnderline
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
198 syn region htmlItalic start="<em\>" end="</em\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
199 syn region htmlItalicBold contained start="<b\>" end="</b\_s*>"me=s-1 contains=@htmlTop,htmlItalicBoldUnderline
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
200 syn region htmlItalicBold contained start="<strong\>" end="</strong\_s*>"me=s-1 contains=@htmlTop,htmlItalicBoldUnderline
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
201 syn region htmlItalicBoldUnderline contained start="<u\>" end="</u\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
202 syn region htmlItalicUnderline contained start="<u\>" end="</u\_s*>"me=s-1 contains=@htmlTop,htmlItalicUnderlineBold
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
203 syn region htmlItalicUnderlineBold contained start="<b\>" end="</b\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
204 syn region htmlItalicUnderlineBold contained start="<strong\>" end="</strong\_s*>"me=s-1 contains=@htmlTop
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
206 syn match htmlLeadingSpace "^\s\+" contained
16267
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
207 syn region htmlLink start="<a\>\_[^>]*\<href\>" end="</a\_s*>"me=s-1 contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLeadingSpace,javaScript,@htmlPreproc
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
208 syn region htmlH1 start="<h1\>" end="</h1\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
209 syn region htmlH2 start="<h2\>" end="</h2\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
210 syn region htmlH3 start="<h3\>" end="</h3\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
211 syn region htmlH4 start="<h4\>" end="</h4\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
212 syn region htmlH5 start="<h5\>" end="</h5\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
213 syn region htmlH6 start="<h6\>" end="</h6\_s*>"me=s-1 contains=@htmlTop
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
214 syn region htmlHead start="<head\>" end="</head\_s*>"me=s-1 end="<body\>"me=s-1 end="<h[1-6]\>"me=s-1 contains=htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLink,htmlTitle,javaScript,cssStyle,@htmlPreproc
b471858040bc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14123
diff changeset
215 syn region htmlTitle start="<title\>" end="</title\_s*>"me=s-1 contains=htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,javaScript,@htmlPreproc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
218 syn keyword htmlTagName contained noscript
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn keyword htmlSpecialTagName contained script style
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 if main_syntax != 'java' || exists("java_javascript")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 " JAVA SCRIPT
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
222 syn include @htmlJavaScript syntax/javascript.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 unlet b:current_syntax
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3854
diff changeset
224 syn region javaScript start=+<script\_[^>]*>+ keepend end=+</script\_[^>]*>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
225 syn region htmlScriptTag contained start=+<script+ end=+>+ fold contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
226 hi def link htmlScriptTag htmlTag
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 " html events (i.e. arguments that include javascript commands)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 if exists("html_extended_events")
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
230 syn region htmlEvent contained start=+\<on\a\+\s*=[\t ]*'+ end=+'+ contains=htmlEventSQ
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
231 syn region htmlEvent contained start=+\<on\a\+\s*=[\t ]*"+ end=+"+ contains=htmlEventDQ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 else
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
233 syn region htmlEvent contained start=+\<on\a\+\s*=[\t ]*'+ end=+'+ keepend contains=htmlEventSQ
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
234 syn region htmlEvent contained start=+\<on\a\+\s*=[\t ]*"+ end=+"+ keepend contains=htmlEventDQ
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 endif
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
236 syn region htmlEventSQ contained start=+'+ms=s+1 end=+'+me=s-1 contains=@htmlJavaScript
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
237 syn region htmlEventDQ contained start=+"+ms=s+1 end=+"+me=s-1 contains=@htmlJavaScript
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
238 hi def link htmlEventSQ htmlEvent
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
239 hi def link htmlEventDQ htmlEvent
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 " a javascript expression is used as an arg value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 syn region javaScriptExpression contained start=+&{+ keepend end=+};+ contains=@htmlJavaScript,@htmlPreproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 if main_syntax != 'java' || exists("java_vb")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 " VB SCRIPT
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
247 syn include @htmlVbScript syntax/vb.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 unlet b:current_syntax
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3854
diff changeset
249 syn region javaScript start=+<script \_[^>]*language *=\_[^>]*vbscript\_[^>]*>+ keepend end=+</script\_[^>]*>+me=s-1 contains=@htmlVbScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 syn cluster htmlJavaScript add=@htmlPreproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 if main_syntax != 'java' || exists("java_css")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 " embedded style sheets
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
256 syn keyword htmlArg contained media
dc8197342755 updated for version 7.0d04
vimboss
parents: 433
diff changeset
257 syn include @htmlCss syntax/css.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 syn region cssStyle start=+<style+ keepend end=+</style>+ contains=@htmlCss,htmlTag,htmlEndTag,htmlCssStyleComment,@htmlPreproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 syn match htmlCssStyleComment contained "\(<!--\|-->\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 syn region htmlCssDefinition matchgroup=htmlArg start='style="' keepend matchgroup=htmlString end='"' contains=css.*Attr,css.*Prop,cssComment,cssLength,cssColor,cssURL,cssImportant,cssError,cssString,@htmlPreproc
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
262 hi def link htmlStyleArg htmlString
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 if main_syntax == "html"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 " synchronizing (does not always work if a comment includes legal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 " html tags, but doing it right would mean to always start
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 " at the first line, which is too slow)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 syn sync match htmlHighlight groupthere NONE "<[/a-zA-Z]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 syn sync match htmlHighlight groupthere javaScript "<script"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 syn sync match htmlHighlightSkip "^.*['\"].*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 syn sync minlines=10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 " The default highlighting.
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
276 hi def link htmlTag Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
277 hi def link htmlEndTag Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
278 hi def link htmlArg Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
279 hi def link htmlTagName htmlStatement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
280 hi def link htmlSpecialTagName Exception
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
281 hi def link htmlValue String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
282 hi def link htmlSpecialChar Special
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
283
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
284 if !exists("html_no_rendering")
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
285 hi def link htmlH1 Title
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
286 hi def link htmlH2 htmlH1
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
287 hi def link htmlH3 htmlH2
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
288 hi def link htmlH4 htmlH3
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
289 hi def link htmlH5 htmlH4
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
290 hi def link htmlH6 htmlH5
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
291 hi def link htmlHead PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
292 hi def link htmlTitle Title
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
293 hi def link htmlBoldItalicUnderline htmlBoldUnderlineItalic
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
294 hi def link htmlUnderlineBold htmlBoldUnderline
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
295 hi def link htmlUnderlineItalicBold htmlBoldUnderlineItalic
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
296 hi def link htmlUnderlineBoldItalic htmlBoldUnderlineItalic
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
297 hi def link htmlItalicUnderline htmlUnderlineItalic
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
298 hi def link htmlItalicBold htmlBoldItalic
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
299 hi def link htmlItalicBoldUnderline htmlBoldUnderlineItalic
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
300 hi def link htmlItalicUnderlineBold htmlBoldUnderlineItalic
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
301 hi def link htmlLink Underlined
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
302 hi def link htmlLeadingSpace None
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
303 if !exists("html_my_rendering")
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
304 hi def htmlBold term=bold cterm=bold gui=bold
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
305 hi def htmlBoldUnderline term=bold,underline cterm=bold,underline gui=bold,underline
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
306 hi def htmlBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
307 hi def htmlBoldUnderlineItalic term=bold,italic,underline cterm=bold,italic,underline gui=bold,italic,underline
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
308 hi def htmlUnderline term=underline cterm=underline gui=underline
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
309 hi def htmlUnderlineItalic term=italic,underline cterm=italic,underline gui=italic,underline
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
310 hi def htmlItalic term=italic cterm=italic gui=italic
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
311 if v:version > 800 || v:version == 800 && has("patch1038")
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
312 hi def htmlStrike term=strikethrough cterm=strikethrough gui=strikethrough
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
313 else
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
314 hi def htmlStrike term=underline cterm=underline gui=underline
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
315 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
319 hi def link htmlPreStmt PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
320 hi def link htmlPreError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
321 hi def link htmlPreProc PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
322 hi def link htmlPreAttr String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
323 hi def link htmlPreProcAttrName PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
324 hi def link htmlPreProcAttrError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
325 hi def link htmlSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
326 hi def link htmlSpecialChar Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
327 hi def link htmlString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
328 hi def link htmlStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
329 hi def link htmlComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
330 hi def link htmlCommentPart Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
331 hi def link htmlValue String
24024
ef454a7f485d Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19721
diff changeset
332 hi def link htmlCommentNested htmlCommentError
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
333 hi def link htmlCommentError htmlError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
334 hi def link htmlTagError htmlError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
335 hi def link htmlEvent javaScript
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
336 hi def link htmlError Error
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 6476
diff changeset
337
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
338 hi def link javaScript Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
339 hi def link javaScriptExpression javaScript
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
340 hi def link htmlCssStyleComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
341 hi def link htmlCssDefinition Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 let b:current_syntax = "html"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 if main_syntax == 'html'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 unlet main_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348
3854
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
349 let &cpo = s:cpo_save
aa51675adf7e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1125
diff changeset
350 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 " vim: ts=8