Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
avoid emmet matches when word starts with a HTML tag name
Brad Cornes <bradlc41@gmail.com>
6 years ago
1 changed files, 3 additions(+), 3 deletions(-)
M src/extension.ts -> src/extension.ts
diff --git a/src/extension.ts b/src/extension.ts
index 99d162933ee803a16a26301169a5628508dd54a0..34832a3333ea8024a169da7c9fadf44a9bdc4c0a 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -158,9 +158,9 @@           matches = currentWord.match(/^\.([^.()#>*^ \[\]=$@{}]*)$/)
           if (!matches) {
             matches = currentWord.match(
               new RegExp(
-                `^([A-Z][a-zA-Z0-9]*|[a-z][a-z0-9]*-[a-z0-9-]+|${htmlElements.join(
-                  '|'
-                )}).*?\\.([^.()#>*^ \\[\\]=$@{}]*)$`
+                `^([A-Z][a-zA-Z0-9]*|[a-z][a-z0-9]*-[a-z0-9-]+|${htmlElements
+                  .map(x => `${x}\\b`)
+                  .join('|')}).*?\\.([^.()#>*^ \\[\\]=$@{}]*)$`
               )
             )
           }