vim-java-unused-imports icon indicating copy to clipboard operation
vim-java-unused-imports copied to clipboard

Ignore multi-line comments

Open nguydavi opened this issue 9 years ago • 2 comments

Currently, only single line comments are ignored while scanning the file . If I find a nice way to solve this that'd be great !

After this, I don't know what else I could add to this plugin :p

nguydavi avatar Jul 07 '15 19:07 nguydavi

A multiline lookbehind lookahead combo could work. Give that lookahead/behind is really slow, it would be worth doing it only after finding a match after the class definition, to verify that the match isn't in an import.

akhaku avatar Jul 08 '15 04:07 akhaku

True but I'll try to look for a solution not involving lookbehind/lookahead though. If I am not satisfied with what I find, I'll go with that solution.

nguydavi avatar Jul 08 '15 07:07 nguydavi