tidalcycles / Tidal

Pattern language
http://tidalcycles.org/
GNU General Public License v3.0
2.22k stars 254 forks source link

Parser errors for new rest symbol #1091

Open nkleemann opened 2 months ago

nkleemann commented 2 months ago

As a german keyboard layout user, thank you very much for: #1087

After experimenting with this I found patterns that trips up the parser:

example:

d1
    $ n "[-- 0 5]"
    # s "cpu"

Failed to Stream.streamReplace: Syntax error in sequence: "[-- 0 5]" ^
unexpected end of input expecting sequence, ",", "|" or "]" Return to previous pattern.

yaxu commented 2 months ago

Ah thanks for this, the patch was surprisingly simple, I guess too simple! I'll add some breaking tests to mark this out as a release blocking bug