Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
.vimrc
and.gvimrc
(along with their global variants and windows-specific names) were ignored. Comments were also broken (searched for\"
instead of"
).Also added support for vim9 comments (see: https://vim-jp.org/vimdoc-en/vim9.html#vim9-differences)
And a general comment: the general language config is extremely inconsistent between
\\\"
and\"
when normal quotes are listed. That being said, I had to leave the quote config to search\"
instead of"
. Vimscript uses a single"
to mean comments, but""
on a single line can refer to a string instead. Also means this is valid:let test = "This is a string" " But this is a comment
scc doesn't seem to account for context with languages like these, so it's an either-or situation without a patch for that (which I'm not competent enough in Go to write). Not sure what string counting is for (might be for ignoring comments in multiline strings?), but comment counting at least works now.
Anyway, before (
.vimrc
, nottest.vim
):And before with my
.vimrc
temporarily copied totest.vim
:After (with
.vimrc
and nottest.vim
):And finally, source for the filenames:
(
_vimrc
and_gvimrc
are windows files, which aren't listed because I'm not on windows. Their validity can be verified with:version
in vim on Windows..exrc
is a Vi file and not directly vim, so decided to exclude that)