Skip to content

Commit

Permalink
Add EEx support (elixir and phoenix)
Browse files Browse the repository at this point in the history
Closes zignd#148
  • Loading branch information
praveenperera authored Jun 12, 2019
1 parent 909bfa9 commit ef8bf16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function provideCompletionItemsGenerator(languageSelector: string, classMatchReg

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

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

Expand Down

0 comments on commit ef8bf16

Please sign in to comment.