leo and i have been having an ongoing "vim macros vs. multiple cursor" tug of war, and im sorry, but when have you ever seen multiple cursors do this
(context:
all sprig assets (maps, sprites, songs) are stored as text,
(the web editor just shows you a nice graphical editor for the text based formats)
what's seen here is the text format for the songs
problem:
when the songs play in your web browser, they're parsed using regex
on the device, we use jerryscript to run your javascript
per my logging yesterday, something in jerryscript's regex implementation makes the device hang
solution:
to confirm that this is the case, I am rewriting the parser in C
for my minimal repro of the parser, I want example song strings to test against just pasted into my C code
they need to be multiline C strings, then.
multiline C strings:
multiline C strings are just single-line string literals with newlines between them
(the preprocessor automatically concatenates strings with nothing but whitespace between them)
e.g.
puts("this little spriggy"
" goes to the"
" market!");
// > "this little spriggy goes to the market"
this macro adds a "
to the beginning of each line of a "block" of text (which in this case are discrete songs))