tmhglnd / mercury

A minimal and human-readable language and environment for the live coding of algorithmic electronic music.
http://www.timohoogland.com/mercury-livecoding
GNU General Public License v3.0
291 stars 13 forks source link

Convert indentation tabs to spaces #46

Open tmhglnd opened 4 years ago

tmhglnd commented 4 years ago

When loading a textfile with tabs used for indentation the indents are not converted to spaces correctly and there introduce an error in the result of the code on screen:

new synth sine name(s)
    set s note(notes 1) time(1/16) shape(1 300)
^^^^ tab of 4 spaces wide 

results in:

new synth sine name(s)
set s note(notes 1) time(1/16) shape(1 300) 

should result in:

new synth sine name(s)
    set s note(notes 1) time(1/16) shape(1 300)
^^^^ tab of 4 spaces wide