diff --git a/src/data.ts b/src/data.ts index f627ea7..995b987 100644 --- a/src/data.ts +++ b/src/data.ts @@ -7,6 +7,6 @@ export const htmlData = { "body", "head", "html", "address", "blockquote", "dd", "div", "section", "article", "aside", "header", "footer", "nav", "menu", "dl", "dt", "fieldset", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "iframe", "noframes", "object", "ol", "p", "ul", "applet", "center", "dir", "hr", "pre", "a", "abbr", "acronym", "area", "b", "base", "basefont", "bdo", "big", "br", "button", "caption", "cite", "code", "col", "colgroup", "del", "dfn", "em", "font", "i", "img", "input", "ins", "isindex", "kbd", "label", "legend", "li", "link", "map", "meta", "noscript", "optgroup", "option", "param", "q", "s", "samp", "script", "select", "small", "span", "strike", "strong", "style", "sub", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "title", "tr", "tt", "u", "var", - "canvas", "main", "figure", "plaintext", "figcaption", "hgroup", "details", "summary" + "canvas", "main", "figure", "plaintext", "figcaption", "hgroup", "details", "summary", "audio", "bdi", "data", "datalist", "dialog", "embed", "mark", "math", "meter", "output", "picture", "portal", "progress", "rp", "rt", "ruby", "search", "slot", "source", "template", "time", "track", "video", "wbr" ] } diff --git a/src/test/emmetHelper.test.ts b/src/test/emmetHelper.test.ts index 5b1fe63..c55653e 100644 --- a/src/test/emmetHelper.test.ts +++ b/src/test/emmetHelper.test.ts @@ -88,6 +88,7 @@ describe('Validate Abbreviations', () => { 'ul>li', 'ul', 'h1', + 'picture>source', 'ul>li*3', '(ul>li)+div', '.hello', diff --git a/src/test/expand.test.ts b/src/test/expand.test.ts index 28602af..de96c4b 100644 --- a/src/test/expand.test.ts +++ b/src/test/expand.test.ts @@ -224,6 +224,12 @@ describe('Expand Abbreviations', () => { testExpandWithCompletion('css', '!imp', '!important'); testCountCompletions('css', '!importante', 0); + + testExpandWithCompletion('html', 'vid', ''); + testExpandWithCompletion('html', 'dlg', '${0}'); + testExpandWithCompletion('html', 'datal', '${0}'); + testExpandWithCompletion('html', 'prog', '${0}'); + // escaped dollar signs should not change after going through Emmet expansion only // VS Code automatically removes the backslashes after the expansion testExpand('html', 'span{\\$5}', '\\$5');