You do not add the comments to 'foldmarker'
itself, there's the 'commentstring'
option that influences how Vim surrounds the fold markers (when creating folds with zf
). Try setting
:setlocal commentstring=//%s
for your scilab filetype. (Put the command in ~/.vim/after/ftplugin/scilab.vim
to make it permanent.)