forked from VimPlug/emmet-vim
Merge pull request #502 from mattn/use-autocmd
Use autocmd to apply syntax styledEmmetAbbreviation
This commit is contained in:
@@ -174,6 +174,11 @@ 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
|
||||||
|
|
||||||
|
augroup ___emmet_setup___
|
||||||
|
au!
|
||||||
|
autocmd Syntax * syntax match styledEmmetAbbreviation "[a-z0-9#+!%]\+" containedin=styledDefinition contained
|
||||||
|
augroup END
|
||||||
|
|
||||||
let &cpoptions = s:save_cpo
|
let &cpoptions = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
" Register `styledEmmetAbbreviation` syntax in `styledDefinition` region defined in
|
|
||||||
" https://github.com/styled-components/vim-styled-components.
|
|
||||||
syntax match styledEmmetAbbreviation "[a-z0-9#+!%]\+" containedin=styledDefinition contained
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
runtime syntax/javascript.vim
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
runtime syntax/javascript.vim
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
runtime syntax/javascript.vim
|
|
||||||
Reference in New Issue
Block a user