profezzorn / ProffieOS-StyleEditor

GNU General Public License v3.0
7 stars 5 forks source link

Percentage broken #62

Closed NoSloppy closed 1 year ago

NoSloppy commented 1 year ago

It's something in the "better comment handling" commit 71c28ed . Diff attached. diff.txt

The Percentage button is doing nothing visually. Manually entering Percentage<WavLen<>,20> throws the error: Percentage:Percentage:Missing > or ,

Here is the previous, working version Style Editor's console when hitting Percentage button:

PARSING: Percentage<RandomPerLEDF, 20>
Style Editor.html:7043 PARSING: RandomPerLEDF
Style Editor.html:7539 Percentage<RandomPerLEDF,20>
Style Editor.html:7043 PARSING: Percentage<RandomPerLEDF,20>
Style Editor.html:7043 PARSING: RandomPerLEDF
Style Editor.html:7340 Percentage<RandomPerLEDF,20>
Style Editor.html:7043 PARSING: Percentage<RandomPerLEDF,20>
Style Editor.html:7043 PARSING: RandomPerLEDF

But now we get a weird parsing of Mult involved: Mult<RandomPerLEDF,Int<6553.6>>

VM1868 style_editor.html:3639 Add effect 13 @ 0.8736328550757815
VM1868 style_editor.html:7228 PARSING: Percentage<RandomPerLEDF, 20>
VM1868 style_editor.html:7228 PARSING: RandomPerLEDF
VM1868 style_editor.html:7228 PARSING: Mult<RandomPerLEDF,Int<6553.6>>
VM1868 style_editor.html:7420 Uncaught MyError {desc: 'Percentage:Percentage:Missing > or ,', begin_pos: 0, end_pos: 29}
profezzorn commented 1 year ago

Should be fixed now.