Attempt at fixing the Javascript identifier pattern

Running tests locally seems OK!
This commit is contained in:
jpsouzasilva
2018-08-28 22:05:06 -03:00
parent 3dcdbff913
commit 03c2309f44
2 changed files with 519 additions and 3 deletions

View File

@@ -383,7 +383,7 @@ function! emmet#getFileType(...) abort
let type = 'css'
elseif type =~# '^html\w'
let type = 'html'
elseif type =~# '^javaScript'
elseif type =~# '^js\w'
let type = 'javascript'
elseif type =~# '^xml'
let type = 'xml'
@@ -409,10 +409,9 @@ function! emmet#getFileType(...) abort
endif
endfor
endif
if len(type) ==# 0 | let type = 'html' | endif
endif
return type
return len(type) == 0 ? 'html' : type
endfunction
function! emmet#getDollarExprs(expand) abort