tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/src/lsp/providers/completionProvider.ts b/src/lsp/providers/completionProvider.ts
index 8f47ca6a5ff2c7a6dda52817da2eafd830386ee1..6dbb1e7a8de391c327c00dee9b74fb0b1fe08c87 100644
--- a/src/lsp/providers/completionProvider.ts
+++ b/src/lsp/providers/completionProvider.ts
@@ -126,8 +126,8 @@ start: { line: Math.max(position.line - 10, 0), character: 0 },
end: position,
})
-import removeMeta from '../util/removeMeta'
CompletionItemKind,
+} from '../util/lexers'
if (match === null) {
return null
diff --git a/src/lsp/util/find.ts b/src/lsp/util/find.ts
index 6b1bfca7fbce3737b86c7529b4e7141715d17f58..7a09c300cd0159573920e614896d6ff40f274321 100644
--- a/src/lsp/util/find.ts
+++ b/src/lsp/util/find.ts
@@ -101,7 +101,7 @@ doc: TextDocument,
range: Range
): DocumentClassList[] {
const text = doc.getText(range)
- const matches = findAll(/[\s:]class(?:Name)?=['"`{]/g, text)
+ const matches = findAll(/(?:\b|:)class(?:Name)?=['"`{]/g, text)
const result: DocumentClassList[] = []
matches.forEach((match) => {