tweak emmet regex

master
Brad Cornes 2018-08-21 19:13:51 +01:00
parent 5246eae80a
commit 90775131f0
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ function createCompletionItemProvider(
// match emmet style syntax
// e.g. .flex.items-center
let lineText = text.split('\n').pop()
matches = lineText.match(/^\s*[a-z-]*\.(.*?)$/i)
matches = lineText.match(/\.([^()#>*^ \[\]=$@{}]*)$/i)
let parts = matches[matches.length - 1].split('.')
str = parts[parts.length - 1]
}