comparison runtime/syntax/html.vim @ 12756:3b26420fc639

Long overdue runtime update. commit https://github.com/vim/vim/commit/01164a6546b4c635daf96a1f17d1cb2d07f32a66 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 2 22:58:42 2017 +0100 Long overdue runtime update.
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Nov 2017 23:00:08 +0100
parents 523cd59d6db0
children a6d3e2081544
comparison
equal deleted inserted replaced
12755:3529eea08ad9 12756:3b26420fc639
1 " Vim syntax file 1 " Vim syntax file
2 " Language: HTML 2 " Language: HTML
3 " Maintainer: Jorge Maldonado Ventura <jorgesumle@freakspot.net> 3 " Maintainer: Jorge Maldonado Ventura <jorgesumle@freakspot.net>
4 " Previous Maintainer: Claudio Fleiner <claudio@fleiner.com> 4 " Previous Maintainer: Claudio Fleiner <claudio@fleiner.com>
5 " Repository: https://notabug.org/jorgesumle/vim-html-syntax 5 " Repository: https://notabug.org/jorgesumle/vim-html-syntax
6 " Last Change: 2017 Jan 21 6 " Last Change: 2017 Sep 30
7 " included patch from Jorge Maldonado Ventura 7 " included patch from Christian Brabandt to make use of the strikethrough attributes
8 "
8 9
9 " Please check :help html.vim for some comments and a description of the options 10 " Please check :help html.vim for some comments and a description of the options
10 11
11 " quit when a syntax file was already loaded 12 " quit when a syntax file was already loaded
12 if !exists("main_syntax") 13 if !exists("main_syntax")
43 syn keyword htmlTagName contained big blockquote br caption center 44 syn keyword htmlTagName contained big blockquote br caption center
44 syn keyword htmlTagName contained cite code dd dfn dir div dl dt font 45 syn keyword htmlTagName contained cite code dd dfn dir div dl dt font
45 syn keyword htmlTagName contained form hr html img 46 syn keyword htmlTagName contained form hr html img
46 syn keyword htmlTagName contained input isindex kbd li link map menu 47 syn keyword htmlTagName contained input isindex kbd li link map menu
47 syn keyword htmlTagName contained meta ol option param pre p samp span 48 syn keyword htmlTagName contained meta ol option param pre p samp span
48 syn keyword htmlTagName contained select small strike sub sup 49 syn keyword htmlTagName contained select small sub sup
49 syn keyword htmlTagName contained table td textarea th tr tt ul var xmp 50 syn keyword htmlTagName contained table td textarea th tr tt ul var xmp
50 syn match htmlTagName contained "\<\(b\|i\|u\|h[1-6]\|em\|strong\|head\|body\|title\)\>" 51 syn match htmlTagName contained "\<\(b\|i\|u\|h[1-6]\|em\|strong\|head\|body\|title\)\>"
51 52
52 " new html 4.0 tags 53 " new html 4.0 tags
53 syn keyword htmlTagName contained abbr acronym bdo button col label 54 syn keyword htmlTagName contained abbr acronym bdo button col label
54 syn keyword htmlTagName contained colgroup del fieldset iframe ins legend 55 syn keyword htmlTagName contained colgroup fieldset iframe ins legend
55 syn keyword htmlTagName contained object optgroup q s tbody tfoot thead 56 syn keyword htmlTagName contained object optgroup q s tbody tfoot thead
56 57
57 " new html 5 tags 58 " new html 5 tags
58 syn keyword htmlTagName contained article aside audio bdi canvas data 59 syn keyword htmlTagName contained article aside audio bdi canvas data
59 syn keyword htmlTagName contained datalist details embed figcaption figure 60 syn keyword htmlTagName contained datalist details embed figcaption figure
132 syn match htmlPreProcAttrName contained "\(expr\|errmsg\|sizefmt\|timefmt\|var\|cgi\|cmd\|file\|virtual\|value\)="he=e-1 133 syn match htmlPreProcAttrName contained "\(expr\|errmsg\|sizefmt\|timefmt\|var\|cgi\|cmd\|file\|virtual\|value\)="he=e-1
133 134
134 if !exists("html_no_rendering") 135 if !exists("html_no_rendering")
135 " rendering 136 " rendering
136 syn cluster htmlTop contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLink,javaScript,@htmlPreproc 137 syn cluster htmlTop contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLink,javaScript,@htmlPreproc
138
139 syn region htmlStrike start="<del\>" end="</del>"me=e-6 contains=@htmlTop
140 syn region htmlStrike start="<strike\>" end="</strike>"me=e-9 contains=@htmlTop
137 141
138 syn region htmlBold start="<b\>" end="</b>"me=e-4 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic 142 syn region htmlBold start="<b\>" end="</b>"me=e-4 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic
139 syn region htmlBold start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic 143 syn region htmlBold start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic
140 syn region htmlBoldUnderline contained start="<u\>" end="</u>"me=e-4 contains=@htmlTop,htmlBoldUnderlineItalic 144 syn region htmlBoldUnderline contained start="<u\>" end="</u>"me=e-4 contains=@htmlTop,htmlBoldUnderlineItalic
141 syn region htmlBoldItalic contained start="<i\>" end="</i>"me=e-4 contains=@htmlTop,htmlBoldItalicUnderline 145 syn region htmlBoldItalic contained start="<i\>" end="</i>"me=e-4 contains=@htmlTop,htmlBoldItalicUnderline
266 hi def htmlBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic 270 hi def htmlBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic
267 hi def htmlBoldUnderlineItalic term=bold,italic,underline cterm=bold,italic,underline gui=bold,italic,underline 271 hi def htmlBoldUnderlineItalic term=bold,italic,underline cterm=bold,italic,underline gui=bold,italic,underline
268 hi def htmlUnderline term=underline cterm=underline gui=underline 272 hi def htmlUnderline term=underline cterm=underline gui=underline
269 hi def htmlUnderlineItalic term=italic,underline cterm=italic,underline gui=italic,underline 273 hi def htmlUnderlineItalic term=italic,underline cterm=italic,underline gui=italic,underline
270 hi def htmlItalic term=italic cterm=italic gui=italic 274 hi def htmlItalic term=italic cterm=italic gui=italic
275 if v:version > 800 || v:version == 800 && has("patch1038")
276 hi def htmlStrike term=strikethrough cterm=strikethrough gui=strikethrough
277 else
278 hi def htmlStrike term=underline cterm=underline gui=underline
279 endif
271 endif 280 endif
272 endif 281 endif
273 282
274 hi def link htmlPreStmt PreProc 283 hi def link htmlPreStmt PreProc
275 hi def link htmlPreError Error 284 hi def link htmlPreError Error