Skip to content

Commit b0805a6

Browse files
devvaannshabose
authored andcommitted
feat: add lorem support in emmet-html
1 parent 362b53d commit b0805a6

File tree

1 file changed

+4
-2
lines changed
  • src/extensions/default/HTMLCodeHints

1 file changed

+4
-2
lines changed

src/extensions/default/HTMLCodeHints/main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,15 @@ define(function (require, exports, module) {
482482
return null;
483483
}
484484

485-
// the word must be either in markupSnippetsList, htmlList or it must have a positive symbol
485+
// the word must be either in markupSnippetsList, htmlList or it must have a positive symbol or lorem text
486486
// convert to lowercase only for `htmlTags` because HTML tag names are case-insensitive,
487487
// but `markupSnippetsList` expands abbreviations in a non-tag manner,
488488
// where the expanded abbreviation is already in lowercase.
489489
if (markupSnippetsList.includes(word) ||
490490
htmlTags.includes(word.toLowerCase()) ||
491-
positiveSymbols.some(symbol => word.includes(symbol))) {
491+
positiveSymbols.some(symbol => word.includes(symbol)) ||
492+
word.toLowerCase().includes('lorem')
493+
) {
492494

493495
try {
494496
return expandAbbr(word, { syntax: "html", type: "markup" }); // expanded

0 commit comments

Comments
 (0)