tweak emmet regex
parent
5246eae80a
commit
90775131f0
|
@ -130,7 +130,7 @@ function createCompletionItemProvider(
|
||||||
// match emmet style syntax
|
// match emmet style syntax
|
||||||
// e.g. .flex.items-center
|
// e.g. .flex.items-center
|
||||||
let lineText = text.split('\n').pop()
|
let lineText = text.split('\n').pop()
|
||||||
matches = lineText.match(/^\s*[a-z-]*\.(.*?)$/i)
|
matches = lineText.match(/\.([^()#>*^ \[\]=$@{}]*)$/i)
|
||||||
let parts = matches[matches.length - 1].split('.')
|
let parts = matches[matches.length - 1].split('.')
|
||||||
str = parts[parts.length - 1]
|
str = parts[parts.length - 1]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue