mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-08 11:34:46 +08:00
Fix syntax
This commit is contained in:
@@ -174,9 +174,15 @@ if get(g:, 'user_emmet_install_command', 1)
|
|||||||
command! -nargs=1 Emmet call emmet#expandAbbr(4, <q-args>)
|
command! -nargs=1 Emmet call emmet#expandAbbr(4, <q-args>)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
function! s:setup_styledEmmetAbbreviation() abort
|
||||||
|
if index(['javascript', 'javascriptreact', 'typescript', 'typescriptreact'], &filetype) != -1
|
||||||
|
syntax match styledEmmetAbbreviation "[a-z0-9#+!%]\+" containedin=styledDefinition contained
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
augroup ___emmet_setup___
|
augroup ___emmet_setup___
|
||||||
au!
|
au!
|
||||||
autocmd Syntax * syntax match styledEmmetAbbreviation "[a-z0-9#+!%]\+" containedin=styledDefinition contained
|
autocmd Syntax * call s:setup_styledEmmetAbbreviation()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
let &cpoptions = s:save_cpo
|
let &cpoptions = s:save_cpo
|
||||||
|
|||||||
Reference in New Issue
Block a user