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