Open denilsonsa opened 11 years ago
The regex is deliberately strict, since it's better to reject legitimate but strange data than it is to accept characters that Vim might then interpret as 'special' and do something broken. If you're doing something funky, you can either use your vimrc instead of modelines, or just take the risk and enable Vim's "anything goes" modelines.
A warning might be a possibility, but we'd have to be careful not to allow malicious files to spam the user.
Due to this regex: https://github.com/ciaranm/securemodelines/blob/master/plugin/securemodelines.vim#L62
My
foldmarker
(which is great for HTML) is not being set, and no warning is being printed.There are two issues:
foldmarker
, and maybe the issue 9).