JoepVanlier / ysfx

Hosting library for JSFX
Apache License 2.0
37 stars 3 forks source link

ysfx: handle multiple same section fields #58

Closed JoepVanlier closed 1 day ago

JoepVanlier commented 1 day ago

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.