Attempt at fixing the Javascript identifier pattern

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

No files matched your search

+2 -3
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