diff runtime/indent/html.vim @ 13563:5923f64c8f5b

Update runtime files commit https://github.com/vim/vim/commit/ab943431d8fcd856008a025b0e5652dd4b8007fc Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 29 18:27:07 2018 +0200 Update runtime files
author Christian Brabandt <cb@256bit.org>
date Thu, 29 Mar 2018 18:30:08 +0200
parents 9eebe457eb3c
children 0ecb909e3249
line wrap: on
line diff
--- a/runtime/indent/html.vim
+++ b/runtime/indent/html.vim
@@ -2,7 +2,7 @@
 " Header: "{{{
 " Maintainer:	Bram Moolenaar
 " Original Author: Andy Wokula <anwoku@yahoo.de>
-" Last Change:	2018 Mar 12
+" Last Change:	2018 Mar 28
 " Version:	1.0
 " Description:	HTML indent script with cached state for faster indenting on a
 "		range of lines.
@@ -216,7 +216,8 @@ endfunc "}}}
 " Add known tag pairs.
 " Self-closing tags and tags that are sometimes {{{
 " self-closing (e.g., <p>) are not here (when encountering </p> we can find
-" the matching <p>, but not the other way around).
+" the matching <p>, but not the other way around).  Known self-closing tags:
+" 'p', 'img', 'source'.
 " Old HTML tags:
 call s:AddITags(s:indent_tags, [
     \ 'a', 'abbr', 'acronym', 'address', 'b', 'bdo', 'big',
@@ -234,7 +235,7 @@ call s:AddITags(s:indent_tags, [
     \ 'area', 'article', 'aside', 'audio', 'bdi', 'canvas',
     \ 'command', 'data', 'datalist', 'details', 'embed', 'figcaption',
     \ 'figure', 'footer', 'header', 'keygen', 'main', 'mark', 'meter',
-    \ 'nav', 'output', 'progress', 'rp', 'rt', 'ruby', 'section', 'source',
+    \ 'nav', 'output', 'picture', 'progress', 'rp', 'rt', 'ruby', 'section',
     \ 'summary', 'svg', 'time', 'track', 'video', 'wbr'])
 
 " Tags added for web components: