rollchains/spawn

support open close spawn tags along with single line spawn tags

Closed this issue · 2 comments

currently we have // spawntag on every line that is module specific and will be removed if the module is within the disable flag. for single lines this is fine, but for blocks of code it would be nice to support an open/close pattern:

// open spawntag: module_name ... ... // close spawntag

I added !spawntag:module where it finds the first and last. This is easiest as if you forgot to add the close, it will just go to the next !spawntag found and delete. If none, error. but agree something more user friendly for our end would be nice.

Maybe instead of open / close we use html like syntax with the brackets?

// <spawntag:globalfee
myCodeHere
another line
another
// spawntag:globalfee>

handled / closed in #31 with the new html tags vs the previous ! tags