mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
@@ -78,7 +78,7 @@ endfunction
|
||||
function! tablemode#table#GetCommentStart() "{{{2
|
||||
let cstring = &commentstring
|
||||
if tablemode#utils#strlen(cstring) > 0
|
||||
return substitute(split(cstring, '%s')[0], '.', '\\\0', 'g')
|
||||
return substitute(split(cstring, '%s')[0], '[^()]', '\\\0', 'g')
|
||||
else
|
||||
return ''
|
||||
endif
|
||||
@@ -98,7 +98,7 @@ function! tablemode#table#GetCommentEnd() "{{{2
|
||||
if tablemode#utils#strlen(cstring) > 0
|
||||
let cst = split(cstring, '%s')
|
||||
if len(cst) == 2
|
||||
return substitute(cst[1], '.', '\\\0', 'g')
|
||||
return substitute(cst[1], '[^()]', '\\\0', 'g')
|
||||
else
|
||||
return ''
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user