This line is commented incorrectly
bendangelo opened this issue · comments
Ben D'Angelo commented
Running gcc
on this line:
originWhitelist={['file://*']}
Resolves to:
// originWhitelist={['file:/#<{(|']}
Which is of course wrong.
Tom Link commented
Well, the replacement will be undone upon uncommenting the line. The
problem is that /* also starts a comment string. Doing this replacement
only within /*...*/-style comments and not within C++-style line
comments is more complex than I would like it to be. If you don't use
C-style block comments, one could modify g:tcomment#line_fmt_c and
disable replacements but this isn't a general solution. If you're
certain that you won't run into problems with nested comments, you could
also set g:tcomment#replacements_c to {} to disable any replacements.