mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-07 12:44:31 +08:00
toggleComment for slim
This commit is contained in:
1 parent
0330ce39b4
commit
a1731c718d
2 files changed
+22
-11
No files matched your search
@@ -105,5 +105,11 @@ function! zencoding#lang#slim#parseTag(tag)
|
||||
endfunction
|
||||
|
||||
function! zencoding#lang#slim#toggleComment()
|
||||
" TODO
|
||||
let line = getline('.')
|
||||
let space = matchstr(line, '^\s*')
|
||||
if line =~ '^\s*/'
|
||||
call setline('.', space . line[len(space)+1:])
|
||||
elseif line =~ '^\s*[a-z]'
|
||||
call setline('.', space . '/' . line[len(space):])
|
||||
endif
|
||||
endfunction
|
||||
Reference in new issue
Block a user