We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd444ab commit cfd4e4fCopy full SHA for cfd4e4f
src/lsp/providers/completionProvider.ts
@@ -126,7 +126,7 @@ function provideClassAttributeCompletions(
126
end: position,
127
})
128
129
- const match = findLast(/[\s:]class(?:Name)?=['"`{]/gi, str)
+ const match = findLast(/(?:\b|:)class(?:Name)?=['"`{]/gi, str)
130
131
if (match === null) {
132
return null
src/lsp/util/find.ts
@@ -101,7 +101,7 @@ export function findClassListsInHtmlRange(
101
range: Range
102
): DocumentClassList[] {
103
const text = doc.getText(range)
104
- const matches = findAll(/[\s:]class(?:Name)?=['"`{]/g, text)
+ const matches = findAll(/(?:\b|:)class(?:Name)?=['"`{]/g, text)
105
const result: DocumentClassList[] = []
106
107
matches.forEach((match) => {
0 commit comments