Why this PR?
Added support for defining multiple blocks for @init, @slider etc within a single JSFX file. This fix allows some of Kawa's plugins that previously did not work to run.
While it might seem a bit icky at first, the reason I went with adding linebreaks between blocks of code is to ensure that the line numbers the user is presented with in the editor are still correct. Implemented this way, it requires no changes in downstream code or data format when interpreted like this. The alternative would be breaking the data format.
Why this PR? Added support for defining multiple blocks for
@init
,@slider
etc within a single JSFX file. This fix allows some of Kawa's plugins that previously did not work to run.While it might seem a bit icky at first, the reason I went with adding linebreaks between blocks of code is to ensure that the line numbers the user is presented with in the editor are still correct. Implemented this way, it requires no changes in downstream code or data format when interpreted like this. The alternative would be breaking the data format.