Improve comment plugin

When commenting a selection, the plugin won't just toggle each
line individually but will only uncomment the block if it is all
comments.

The comment plugin also now takes into account any number of spaces
between the comment character and the text. For example '//comment' will
be uncommented properly, as well as '//      comment'.

Fixes #1758
This commit is contained in:
Zachary Yedidia
2020-07-05 15:48:49 -04:00
parent 102ae04a16
commit 806525c3da
2 changed files with 57 additions and 19 deletions

File diff suppressed because one or more lines are too long