Open bronson opened 13 years ago
Also make sure that trailing comments (either " or #) don't screw it up.
So I understand two formats is confusing but I'm trying to understand why the non commented version is better. I realize it's the syntax for some other plugin but what if you never use this other plugin? Do you have to place some hack in your vimrc to prevent a syntax error on the word "Bundle"? I think having this in a comment is more appropriate.
Have you considered using the Bundle '*' approach with an optional comment? This would allow only one regex and one syntax but allow those who don't use the hack to just comment the line with '"'
" Bundle 'foo' #bar
Bundle 'foo' #bar
match /Bundle\s+'\(.*\)'/i <-- Works with *both* forms and needs only _one_ parsing algorythm.
Only support this style of directive:
Don't allow putting them in comments anymore like this:
Supporting both is too confusing.