avoid emmet matches when word starts with a HTML tag name
parent
c29d0a064b
commit
ce8b928891
|
@ -158,9 +158,9 @@ function createCompletionItemProvider({
|
||||||
if (!matches) {
|
if (!matches) {
|
||||||
matches = currentWord.match(
|
matches = currentWord.match(
|
||||||
new RegExp(
|
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('|')}).*?\\.([^.()#>*^ \\[\\]=$@{}]*)$`
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue