diff --git a/src/extensions/default/HTMLCodeHints/main.js b/src/extensions/default/HTMLCodeHints/main.js index 464d3bcb15..174af532b5 100644 --- a/src/extensions/default/HTMLCodeHints/main.js +++ b/src/extensions/default/HTMLCodeHints/main.js @@ -482,13 +482,15 @@ define(function (require, exports, module) { return null; } - // the word must be either in markupSnippetsList, htmlList or it must have a positive symbol + // the word must be either in markupSnippetsList, htmlList or it must have a positive symbol or lorem text // convert to lowercase only for `htmlTags` because HTML tag names are case-insensitive, // but `markupSnippetsList` expands abbreviations in a non-tag manner, // where the expanded abbreviation is already in lowercase. if (markupSnippetsList.includes(word) || htmlTags.includes(word.toLowerCase()) || - positiveSymbols.some(symbol => word.includes(symbol))) { + positiveSymbols.some(symbol => word.includes(symbol)) || + word.toLowerCase().includes('lorem') + ) { try { return expandAbbr(word, { syntax: "html", type: "markup" }); // expanded diff --git a/src/extensions/default/HTMLCodeHints/unittests.js b/src/extensions/default/HTMLCodeHints/unittests.js index d53fadf725..84d870dccd 100644 --- a/src/extensions/default/HTMLCodeHints/unittests.js +++ b/src/extensions/default/HTMLCodeHints/unittests.js @@ -26,25 +26,25 @@ define(function (require, exports, module) { // Modules from the SpecRunner window const SpecRunnerUtils = brackets.getModule("spec/SpecRunnerUtils"), - Editor = brackets.getModule("editor/Editor").Editor, - HTMLCodeHints = require("main"); + Editor = brackets.getModule("editor/Editor").Editor, + HTMLCodeHints = require("main"); require("integ-tests"); describe("unit: HTML Code Hinting", function () { var defaultContent = "\n" + - "\n" + - "\n" + - "
\n" + - "