Skip to content

Commit fcbe2d3

Browse files
committed
Preload, prefetch
1 parent 87a1945 commit fcbe2d3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

autoload/xml/html5.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ let g:xmldata_html5 = {
613613
\ ],
614614
\ 'link': [
615615
\ [],
616-
\ extend(copy(global_attributes), {'href': [], 'rel': linkreltypes, 'hreflang': lang_tag, 'media': [], 'type': [], 'sizes': ['any'], 'referrerpolicy': ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'unsafe-url'], 'crossorigin': crossorigin})
616+
\ extend(copy(global_attributes), {'href': [], 'rel': linkreltypes, 'hreflang': lang_tag, 'media': [], 'type': [], 'sizes': ['any'], 'referrerpolicy': ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'unsafe-url'], 'crossorigin': crossorigin, 'preload': ['preload', ''], 'prefetch': ['prefetch', '']})
617617
\ ],
618618
\ 'main': [
619619
\ flow_elements + ['style'],

syntax/html.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,11 @@ syn keyword htmlArg contained download media
119119
syn keyword htmlArg contained nonce
120120
" <area>, <a>, <img>, <iframe>, <link>
121121
syn keyword htmlArg contained referrerpolicy
122-
" <script>
123122
" https://w3c.github.io/webappsec-subresource-integrity/#the-integrity-attribute
124123
syn keyword htmlArg contained integrity crossorigin
124+
" <link>
125+
syn keyword htmlArg contained prefetch
126+
" syn keyword htmlArg contained preload
125127

126128
" Custom Data Attributes
127129
" http://w3c.github.io/html/single-page.html#embedding-custom-non-visible-data-with-the-data-attributes

0 commit comments

Comments
 (0)