Skip to content

Commit 9077513

Browse files
committed
tweak emmet regex
1 parent 5246eae commit 9077513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function createCompletionItemProvider(
130130
// match emmet style syntax
131131
// e.g. .flex.items-center
132132
let lineText = text.split('\n').pop()
133-
matches = lineText.match(/^\s*[a-z-]*\.(.*?)$/i)
133+
matches = lineText.match(/\.([^()#>*^ \[\]=$@{}]*)$/i)
134134
let parts = matches[matches.length - 1].split('.')
135135
str = parts[parts.length - 1]
136136
}

0 commit comments

Comments
 (0)