This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
Make the simple regenerator plugin just a little more forgiving... #7
Open
Description
Hello,
The simple-regenerator plugin version 1.0 preserves code between the following
markers:
//-simple-preserve
....
//-simple-preserve
However, sometimes you cannot use these exact markers. IDEs like Eclipse
sometimes wreck the markers when changing the layout of your code. Also, using
these exact markers makes the plugin fail with a mysterious error meesage if
you mistakenly do something like this:
//-simple-preserve
====== SUGGESTED FIX =======
In the PluginImpl class, line 43, change the pattern to
"\r?\n
p
{Space}*//
p{Space}
*-simple-preserve
p
{Space}
*\r?
n"
It still requires the markers to be on lines of their own, but makes the plugin
a little more forgiving of whitespace.
Thanks in advance,
Ben.
Environment
Operating System: All
Platform: All
Affected Versions
[current]