mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 19:24:27 +08:00
Add 'c' for comment
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" emmet.vim
|
" emmet.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 22-Oct-2013.
|
" Last Change: 29-Oct-2013.
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@@ -258,6 +258,8 @@ function! emmet#toString(...)
|
|||||||
for n in current.child
|
for n in current.child
|
||||||
let inner .= emmet#toString(n, type, inline, filters, s:itemno(group_itemno, n), indent)
|
let inner .= emmet#toString(n, type, inline, filters, s:itemno(group_itemno, n), indent)
|
||||||
endfor
|
endfor
|
||||||
|
else
|
||||||
|
let inner = current.value[1:-2]
|
||||||
endif
|
endif
|
||||||
let inner = substitute(inner, "\n", "\n" . indent, 'g')
|
let inner = substitute(inner, "\n", "\n" . indent, 'g')
|
||||||
let str = substitute(str, '\${child}', inner, '')
|
let str = substitute(str, '\${child}', inner, '')
|
||||||
@@ -1357,6 +1359,7 @@ let s:emmet_settings = {
|
|||||||
\ },
|
\ },
|
||||||
\ 'html': {
|
\ 'html': {
|
||||||
\ 'snippets': {
|
\ 'snippets': {
|
||||||
|
\ 'c': "<!-- |${child} -->",
|
||||||
\ 'cc:ie6': "<!--[if lte IE 6]>\n\t${child}|\n<![endif]-->",
|
\ 'cc:ie6': "<!--[if lte IE 6]>\n\t${child}|\n<![endif]-->",
|
||||||
\ 'cc:ie': "<!--[if IE]>\n\t${child}|\n<![endif]-->",
|
\ 'cc:ie': "<!--[if IE]>\n\t${child}|\n<![endif]-->",
|
||||||
\ 'cc:noie': "<!--[if !IE]><!-->\n\t${child}|\n<!--<![endif]-->",
|
\ 'cc:noie': "<!--[if !IE]><!-->\n\t${child}|\n<!--<![endif]-->",
|
||||||
|
|||||||
Reference in New Issue
Block a user