mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 10:44:24 +08:00
Attempt at fixing the Javascript identifier pattern
Running tests locally seems OK!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user