UltimateHackingKeyboard / firmware

Ultimate Hacking Keyboard firmware
Other
420 stars 66 forks source link

Don't throw "unprocessed input" error as consequence of another error. #695

Closed kareltucek closed 1 year ago

kareltucek commented 1 year ago

Steps to reproduce:

E.g.:

Warning at Emoji 2/1: `@` notation is now deprecated. Please, replace it with $currentAddress. E.g., `@3` with `$($currentAddress + 3)`.
> 1 | ifGesture transitive 21 74 17 10 goTo @2
>   |                                       ^
Warning at Rgb 1/11: Unprocessed input encountered.
> 11 | ifGesture transitive g final set backlight.constantRgb.rgb 192 255 0  /green
>    |                                                                       ^
Error at tstErr 1/4: Unrecognized command: invalid
> 4 | invalid 1
>   | ^
Warning at tstErr 1/4: Unprocessed input encountered.
> 4 | invalid 1
>   | ^
Error at tstErr 1/5: Unrecognized command: abcdefg
> 5 | ifShortcut abcdefg
>   |            ^
Warning at tstErr 1/5: Unprocessed input encountered.
> 5 | ifShortcut abcdefg
>   |            ^
Error at tstErr 1/6: Unrecognized command: defg
> 6 | ifGesture defg
>   |           ^
Warning at tstErr 1/6: Unprocessed input encountered.
> 6 | ifGesture defg
>   |           ^

Correct output:

Warning at Emoji 2/1: `@` notation is now deprecated. Please, replace it with $currentAddress. E.g., `@3` with `$($currentAddress + 3)`.
> 1 | ifGesture transitive 21 74 17 10 goTo @2
>   |                                       ^
Warning at Rgb 1/11: Unprocessed input encountered.
> 11 | ifGesture transitive g final set backlight.constantRgb.rgb 192 255 0  /green
>    |                                                                       ^
Error at tstErr 1/4: Unrecognized command: invalid
> 4 | invalid 1
>   | ^
Error at tstErr 1/5: Unrecognized command: abcdefg
> 5 | ifShortcut abcdefg
>   |            ^
Error at tstErr 1/6: Unrecognized command: defg
> 6 | ifGesture defg
>   |           ^