Skip to content

Commit ef8bf16

Browse files
Add EEx support (elixir and phoenix)
Closes zignd#148
1 parent 909bfa9 commit ef8bf16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/extension.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function provideCompletionItemsGenerator(languageSelector: string, classMatchReg
122122

123123
function enableEmmetSupport(disposables: Disposable[]) {
124124
const emmetRegex = /(?=\.)([\w-\. ]*$)/;
125-
const languageModes = ["html", "django-html", "razor", "php", "blade", "vue", "twig", "markdown", "erb",
125+
const languageModes = ["html", "django-html", "razor", "php", "blade", "vue", "twig", "markdown", "erb", "HTML (EEx)",
126126
"handlebars", "ejs", "typescriptreact", "javascript", "javascriptreact"];
127127
languageModes.forEach((language) => {
128128
emmetDisposables.push(provideCompletionItemsGenerator(language, emmetRegex, "", "."));
@@ -186,7 +186,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
186186
});
187187

188188
// HTML based extensions
189-
["html", "django-html", "razor", "php", "blade", "vue", "twig", "markdown", "erb", "handlebars", "ejs"].forEach((extension) => {
189+
["html", "django-html", "razor", "php", "blade", "vue", "twig", "markdown", "erb", "HTML (EEx)", "handlebars", "ejs"].forEach((extension) => {
190190
context.subscriptions.push(provideCompletionItemsGenerator(extension, /class=["|']([\w- ]*$)/));
191191
});
192192

0 commit comments

Comments
 (0)